提交 bdcc7d9e 编写于 作者: M Michael Kolupaev

clickhouse: readable exception instead of NULL pointer for some higher order...

clickhouse: readable exception instead of NULL pointer for some higher order functions in some cases. [#METR-9254]
上级 6e359ab5
......@@ -363,7 +363,7 @@ public:
throw Exception("Function " + getName() + " needs one array argument.",
ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
const ColumnExpression * column_expression = dynamic_cast<const ColumnExpression *>(&*arguments[0].column);
const ColumnExpression * column_expression = dynamic_cast<const ColumnExpression *>(arguments[0].column.get());
if (!column_expression)
throw Exception("First argument for function " + getName() + " must be an expression.",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册