ClickHouse/tests/queries/0_stateless/02227_union_match_by_name.reference

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.9 KiB
Plaintext
Raw Normal View History

2023-03-10 10:36:54 +00:00
-- { echoOn }
EXPLAIN header = 1, optimize = 0 SELECT avgWeighted(x, y) FROM (SELECT NULL, 255 AS x, 1 AS y UNION ALL SELECT y, NULL AS x, 1 AS y);
2023-03-04 17:46:40 +00:00
Expression (Project names)
Header: avgWeighted(x, y) Nullable(Float64)
2023-03-04 17:46:40 +00:00
Expression (Projection)
Header: avgWeighted(__table1.x, __table1.y) Nullable(Float64)
Aggregating
Header: avgWeighted(__table1.x, __table1.y) Nullable(Float64)
Expression (Before GROUP BY)
Header: __table1.x Nullable(UInt8)
__table1.y UInt8
2023-03-04 17:46:40 +00:00
Expression (Change column names to column identifiers)
Header: __table1.x Nullable(UInt8)
__table1.y UInt8
2023-03-04 17:46:40 +00:00
Union
2023-11-09 13:38:16 +00:00
Header: x Nullable(UInt8)
y UInt8
2023-03-04 17:46:40 +00:00
Expression (Conversion before UNION)
2023-11-09 13:38:16 +00:00
Header: x Nullable(UInt8)
y UInt8
2023-03-04 17:46:40 +00:00
Expression (Project names)
2023-11-09 13:38:16 +00:00
Header: x UInt8
2023-03-04 17:46:40 +00:00
y UInt8
Expression (Projection)
2023-11-09 13:38:16 +00:00
Header: 255_UInt8 UInt8
2023-03-04 17:46:40 +00:00
1_UInt8 UInt8
Expression (Change column names to column identifiers)
Header: __table3.dummy UInt8
2023-03-04 17:46:40 +00:00
ReadFromStorage (SystemOne)
Header: dummy UInt8
Expression (Conversion before UNION)
2023-11-09 13:38:16 +00:00
Header: x Nullable(UInt8)
y UInt8
2023-03-04 17:46:40 +00:00
Expression (Project names)
2023-11-09 13:38:16 +00:00
Header: x Nullable(Nothing)
2023-03-04 17:46:40 +00:00
y UInt8
Expression (Projection)
Header: _CAST(NULL_Nullable(Nothing), \'Nullable(Nothing)\'_String) Nullable(Nothing)
2023-03-04 17:46:40 +00:00
1_UInt8 UInt8
Expression (Change column names to column identifiers)
Header: __table5.dummy UInt8
2023-03-04 17:46:40 +00:00
ReadFromStorage (SystemOne)
Header: dummy UInt8
SELECT avgWeighted(x, y) FROM (SELECT NULL, 255 AS x, 1 AS y UNION ALL SELECT y, NULL AS x, 1 AS y);
255