fix select count()

This commit is contained in:
Alexander Tokmakov 2020-10-14 16:15:15 +03:00
parent 72b1339656
commit 7d58992ea8

View File

@ -1114,6 +1114,7 @@ void InterpreterSelectQuery::executeFetchColumns(
bool optimize_trivial_count =
syntax_analyzer_result->optimize_trivial_count
&& storage
&& storage->getName() != "MaterializeMySQL"
&& !filter_info
&& processing_stage == QueryProcessingStage::FetchColumns
&& query_analyzer->hasAggregation()