Last active
October 21, 2019 20:14
-
-
Save fpopic/56449b3f51ec07a7aa10e9db90a300df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH | |
T_A AS ( | |
SELECT STRUCT("1" AS x, 2 AS y) a -- schema a is huge | |
), | |
T_B AS( | |
SELECT STRUCT(TRUE AS z, 4.0 AS w) b -- schema b is huge as well | |
) | |
SELECT | |
a, | |
NULL b | |
FROM | |
T_A | |
UNION ALL | |
SELECT | |
NULL a, | |
b | |
FROM | |
T_B | |
# Wanted output: | |
# (1 x, 2 y) a, NULL b | |
# NULL a, (TRUE z, 4,0 w) b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment