提交 33d19114 编写于 作者: M Michael Kolupaev

clickhouse: slightly fixed sign-rewrite exception [#CONV-7962].

上级 b81e9544
......@@ -352,7 +352,7 @@ void ExpressionAnalyzer::normalizeTreeImpl(ASTPtr & ast, MapOfASTs & finished_as
else
{
/// Проверим имеет ли смысл sign-rewrite
if (!in_sign_rewritten && node->name == sign_column_name)
if (!in_sign_rewritten && sign_column_name != "" && node->name == sign_column_name)
throw Exception("Requested Sign column while sign-rewrite is on.", ErrorCodes::QUERY_SECTION_DOESNT_MAKE_SENSE);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册