Update StorageMerge.cpp

This commit is contained in:
Nikolai Kochetov 2024-06-12 15:09:38 +02:00 committed by GitHub
parent f564ec3b69
commit 089f5bfecd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1198,6 +1198,8 @@ ReadFromMerge::ChildPlan ReadFromMerge::createPlanForTable(
if (allow_experimental_analyzer)
{
/// Converting query to AST because types might be different in the source table.
/// Need to resolve types again.
InterpreterSelectQueryAnalyzer interpreter(modified_query_info.query_tree->toAST(),
modified_context,
SelectQueryOptions(processed_stage));