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
The UNION ALL statement merges two streaming data. The fields of the two streaming data must be exactly the same, including the field type and field order.
SELECT
a,
sum(b) as d,
sum(c) as e
FROM
(SELECT*from test_source_union1
UNION ALLSELECT*from test_source_union2
UNION ALLSELECT*from test_source_union3
)t
GROUP BY a;
Expected result:
a(varchar)
d(bigint)
e(bigint)
test1
1
10
test2
2
20
test1
2
20
test1
3
30
test2
4
40
test1
4
40
The text was updated successfully, but these errors were encountered:
The UNION ALL statement merges two streaming data. The fields of the two streaming data must be exactly the same, including the field type and field order.
test data:
a(varchar) | b(bigint) | c(bigint)
-- | -- | --
test1 | 1 | 10
test2 | 2 | 20
test1 | 1 | 10
test sql:
Expected result:
The text was updated successfully, but these errors were encountered: