mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
fix select count()
This commit is contained in:
parent
72b1339656
commit
7d58992ea8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user