clickhouse-client --enable_analyzer=1 --query_kind secondary_query -q explain plan header=1 select toString(dummy) as dummy from system.one group by dummy Expression ((Project names + Projection)) Header: dummy String Aggregating Header: toString(__table1.dummy) String Expression ((Before GROUP BY + Change column names to column identifiers)) Header: toString(__table1.dummy) String ReadFromStorage (SystemOne) Header: dummy UInt8 clickhouse-local --enable_analyzer=1 --query_kind secondary_query -q explain plan header=1 select toString(dummy) as dummy from system.one group by dummy Expression ((Project names + Projection)) Header: dummy String Aggregating Header: toString(__table1.dummy) String Expression ((Before GROUP BY + Change column names to column identifiers)) Header: toString(__table1.dummy) String ReadFromStorage (SystemOne) Header: dummy UInt8 clickhouse-client --enable_analyzer=1 --query_kind initial_query -q explain plan header=1 select toString(dummy) as dummy from system.one group by dummy Expression ((Project names + Projection)) Header: dummy String Aggregating Header: __table1.dummy UInt8 Expression ((Before GROUP BY + Change column names to column identifiers)) Header: __table1.dummy UInt8 ReadFromStorage (SystemOne) Header: dummy UInt8 clickhouse-local --enable_analyzer=1 --query_kind initial_query -q explain plan header=1 select toString(dummy) as dummy from system.one group by dummy Expression ((Project names + Projection)) Header: dummy String Aggregating Header: __table1.dummy UInt8 Expression ((Before GROUP BY + Change column names to column identifiers)) Header: __table1.dummy UInt8 ReadFromStorage (SystemOne) Header: dummy UInt8