You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DB::Exception: Different number of columns in UNION ALL elements #2083
Union all is not working when in subquery has column with different aliases:
CREATETABLEtest(x Int32) ENGINE = Log;
SELECT a1
FROM
(
SELECT x AS a1, x AS a2 FROM test
UNION ALLSELECT x, x FROM test
)
Error:
Received exception from server (version 1.1.54370):
Code: 258. DB::Exception: Received from localhost:9000, 127.0.0.1. DB::Exception: Different number of columns in UNION ALL elements.
Activity
ztlpn commentedon Mar 21, 2018
Confirmed.
Added a test from Stas Sviridov #2083