diff --git a/src/Analyzer/QueryTreePassManager.cpp b/src/Analyzer/QueryTreePassManager.cpp index f4941dca080..ecd3a748da3 100644 --- a/src/Analyzer/QueryTreePassManager.cpp +++ b/src/Analyzer/QueryTreePassManager.cpp @@ -76,7 +76,8 @@ class ValidationChecker : public InDepthQueryTreeVisitor for (size_t i = 0; i < expected_arg_types.size(); ++i) { // Skip lambdas - if(WhichDataType(expected_arg_types[i]).isFunction()) + WhichDataType which_type(expected_arg_types[i]); + if(which_type.isFunction()) continue; if (!expected_arg_types[i]->equals(*actual_arg_columns[i].type)) throw Exception(ErrorCodes::LOGICAL_ERROR,