mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-20 14:42:02 +00:00
Fix nullptr dereference
This commit is contained in:
parent
9cefb62341
commit
ea6a25b8e7
@ -454,7 +454,7 @@ void ExpressionAnalyzer::analyzeAggregation(ActionsDAGPtr & temp_actions)
|
||||
for (const auto & desc : aggregate_descriptions)
|
||||
aggregated_columns.emplace_back(desc.column_name, desc.function->getReturnType());
|
||||
|
||||
if (select_query->group_by_with_grouping_sets)
|
||||
if (select_query != nullptr && select_query->group_by_with_grouping_sets)
|
||||
aggregated_columns.emplace_back("__grouping_set", std::make_shared<DataTypeUInt64>());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user