-- { echoOn } EXPLAIN AST optimize=0 SELECT * FROM numbers(0); SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Asterisk TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function numbers (children 1) ExpressionList (children 1) Literal UInt64_0 EXPLAIN AST optimize=1 SELECT * FROM numbers(0); SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Identifier number TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function numbers (children 1) ExpressionList (children 1) Literal UInt64_0 EXPLAIN AST optimize=0 SELECT countDistinct(number) FROM numbers(0); SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Function countDistinct (children 1) ExpressionList (children 1) Identifier number TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function numbers (children 1) ExpressionList (children 1) Literal UInt64_0 EXPLAIN AST optimize=1 SELECT countDistinct(number) FROM numbers(0); SelectWithUnionQuery (children 1) ExpressionList (children 1) SelectQuery (children 2) ExpressionList (children 1) Function uniqExact (children 1) ExpressionList (children 1) Identifier number TablesInSelectQuery (children 1) TablesInSelectQueryElement (children 1) TableExpression (children 1) Function numbers (children 1) ExpressionList (children 1) Literal UInt64_0