Correct a finding from clang-tidy

This commit is contained in:
ltrk2 2023-07-06 05:41:34 -07:00
parent ba4072f049
commit b8a959da89

View File

@ -2032,7 +2032,7 @@ void QueryAnalyzer::evaluateScalarSubqueryIfNeeded(QueryTreeNodePtr & node, Iden
auto & nearest_query_scope_query_node = nearest_query_scope->scope_node->as<QueryNode &>();
auto & mutable_context = nearest_query_scope_query_node.getMutableContext();
const auto scalar_query_hash_string = DB::toString(node_with_hash.hash);
auto scalar_query_hash_string = DB::toString(node_with_hash.hash);
if (mutable_context->hasQueryContext())
mutable_context->getQueryContext()->addScalar(scalar_query_hash_string, scalar_block);