ClickHouse/tests/queries/0_stateless/02514_analyzer_drop_join_on.reference
2023-06-01 14:34:29 +00:00

152 lines
5.5 KiB
Plaintext

-- { echoOn }
EXPLAIN PLAN header = 1
SELECT count() FROM a JOIN b ON b.b1 = a.a1 JOIN c ON c.c1 = b.b1 JOIN d ON d.d1 = c.c1 GROUP BY a.a2
;
Expression ((Project names + Projection))
Header: count() UInt64
Aggregating
Header: a2_4 String
count() UInt64
Expression ((Before GROUP BY + DROP unused columns after JOIN))
Header: a2_4 String
Join (JOIN FillRightFirst)
Header: a2_4 String
c1_2 UInt64
Expression ((JOIN actions + DROP unused columns after JOIN))
Header: a2_4 String
c1_2 UInt64
Join (JOIN FillRightFirst)
Header: a2_4 String
b1_0 UInt64
c1_2 UInt64
Expression ((JOIN actions + DROP unused columns after JOIN))
Header: a2_4 String
b1_0 UInt64
Join (JOIN FillRightFirst)
Header: a1_1 UInt64
a2_4 String
b1_0 UInt64
Expression ((JOIN actions + Change column names to column identifiers))
Header: a1_1 UInt64
a2_4 String
ReadFromMemoryStorage
Header: a1 UInt64
a2 String
Expression ((JOIN actions + Change column names to column identifiers))
Header: b1_0 UInt64
ReadFromMemoryStorage
Header: b1 UInt64
Expression ((JOIN actions + Change column names to column identifiers))
Header: c1_2 UInt64
ReadFromMemoryStorage
Header: c1 UInt64
Expression ((JOIN actions + Change column names to column identifiers))
Header: d1_3 UInt64
ReadFromMemoryStorage
Header: d1 UInt64
EXPLAIN PLAN header = 1
SELECT a.a2, d.d2 FROM a JOIN b USING (k) JOIN c USING (k) JOIN d USING (k)
;
Expression ((Project names + (Projection + DROP unused columns after JOIN)))
Header: a2 String
d2 String
Join (JOIN FillRightFirst)
Header: a2_0 String
k_2 UInt64
d2_1 String
Expression (DROP unused columns after JOIN)
Header: a2_0 String
k_2 UInt64
Join (JOIN FillRightFirst)
Header: a2_0 String
k_2 UInt64
Expression (DROP unused columns after JOIN)
Header: a2_0 String
k_2 UInt64
Join (JOIN FillRightFirst)
Header: a2_0 String
k_2 UInt64
Expression (Change column names to column identifiers)
Header: a2_0 String
k_2 UInt64
ReadFromMemoryStorage
Header: a2 String
k UInt64
Expression (Change column names to column identifiers)
Header: k_3 UInt64
ReadFromMemoryStorage
Header: k UInt64
Expression (Change column names to column identifiers)
Header: k_4 UInt64
ReadFromMemoryStorage
Header: k UInt64
Expression (Change column names to column identifiers)
Header: d2_1 String
k_5 UInt64
ReadFromMemoryStorage
Header: d2 String
k UInt64
EXPLAIN PLAN header = 1
SELECT b.bx FROM a
JOIN (SELECT b1, b2 || 'x' AS bx FROM b ) AS b ON b.b1 = a.a1
JOIN c ON c.c1 = b.b1
JOIN (SELECT number AS d1 from numbers(10)) AS d ON d.d1 = c.c1
WHERE c.c2 != '' ORDER BY a.a2
;
Expression (Project names)
Header: bx String
Sorting (Sorting for ORDER BY)
Header: a2_6 String
bx_0 String
Expression ((Before ORDER BY + (Projection + )))
Header: a2_6 String
bx_0 String
Join (JOIN FillRightFirst)
Header: a2_6 String
bx_0 String
c2_5 String
c1_3 UInt64
Filter (( + (JOIN actions + DROP unused columns after JOIN)))
Header: a2_6 String
bx_0 String
c2_5 String
c1_3 UInt64
Join (JOIN FillRightFirst)
Header: a2_6 String
bx_0 String
b1_1 UInt64
c2_5 String
c1_3 UInt64
Expression ((JOIN actions + DROP unused columns after JOIN))
Header: a2_6 String
bx_0 String
b1_1 UInt64
Join (JOIN FillRightFirst)
Header: a1_2 UInt64
a2_6 String
bx_0 String
b1_1 UInt64
Expression ((JOIN actions + Change column names to column identifiers))
Header: a1_2 UInt64
a2_6 String
ReadFromMemoryStorage
Header: a1 UInt64
a2 String
Expression ((JOIN actions + (Change column names to column identifiers + (Project names + (Projection + Change column names to column identifiers)))))
Header: b1_1 UInt64
bx_0 String
ReadFromMemoryStorage
Header: b1 UInt64
b2 String
Expression ((JOIN actions + Change column names to column identifiers))
Header: c1_3 UInt64
c2_5 String
ReadFromMemoryStorage
Header: c1 UInt64
c2 String
Expression ((JOIN actions + (Change column names to column identifiers + (Project names + (Projection + Change column names to column identifiers)))))
Header: d1_4 UInt64
ReadFromStorage (SystemNumbers)
Header: number UInt64