diff options
author | udovichenko-r <udovichenko-r@yandex-team.com> | 2024-11-19 14:58:38 +0300 |
---|---|---|
committer | udovichenko-r <udovichenko-r@yandex-team.com> | 2024-11-19 15:16:27 +0300 |
commit | 24521403b1c44303e043ba540c09b1fe991c7474 (patch) | |
tree | 341d1e7206bc7c143d04d2d96f05b6dc0655606d /yql/essentials/tests/sql/suites/union | |
parent | 72b3cd51dc3fb9d16975d353ea82fd85701393cc (diff) | |
download | ydb-24521403b1c44303e043ba540c09b1fe991c7474.tar.gz |
YQL-19206 Move contrib/ydb/library/yql/tests/sql/suites -> yql/essentials/tests/sql/suites
commit_hash:d0ef1f92b09c94db7c2408f946d2a4c62b603f00
Diffstat (limited to 'yql/essentials/tests/sql/suites/union')
10 files changed, 58 insertions, 0 deletions
diff --git a/yql/essentials/tests/sql/suites/union/default.cfg b/yql/essentials/tests/sql/suites/union/default.cfg new file mode 100644 index 0000000000..58878f8945 --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/default.cfg @@ -0,0 +1 @@ +in Input input.txt diff --git a/yql/essentials/tests/sql/suites/union/input.txt b/yql/essentials/tests/sql/suites/union/input.txt new file mode 100644 index 0000000000..65949ea745 --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/input.txt @@ -0,0 +1,4 @@ +{"key"="075";"subkey"="1";"value"="abc"}; +{"key"="800";"subkey"="2";"value"="ddd"}; +{"key"="020";"subkey"="3";"value"="q"}; +{"key"="150";"subkey"="4";"value"="qzz"}; diff --git a/yql/essentials/tests/sql/suites/union/input2.txt b/yql/essentials/tests/sql/suites/union/input2.txt new file mode 100644 index 0000000000..252cb6a46d --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/input2.txt @@ -0,0 +1,4 @@ +{"key"="075";"subkey"="1";"value"="abc"}; +{"key"="800";"subkey"="2";"value"="ddd"}; +{"key"="020";"subkey"="3";"value"="www"}; +{"key"="150";"subkey"="4";"value"="www"}; diff --git a/yql/essentials/tests/sql/suites/union/union_column_extention.sql b/yql/essentials/tests/sql/suites/union/union_column_extention.sql new file mode 100644 index 0000000000..592b6ba780 --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_column_extention.sql @@ -0,0 +1,16 @@ +SELECT + 1 as x +UNION +SELECT + 'a' as y +UNION +SELECT + 1 as x, + 'a' as y +UNION +SELECT + 1 as x +UNION +SELECT + 1 as x, + 'b' as y; diff --git a/yql/essentials/tests/sql/suites/union/union_mix.sql b/yql/essentials/tests/sql/suites/union/union_mix.sql new file mode 100644 index 0000000000..74e2f9680c --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_mix.sql @@ -0,0 +1,4 @@ +SELECT 1 +UNION ALL SELECT 1 UNION ALL SELECT 2 UNION ALL SELECT 1 UNION ALL SELECT 2 +UNION SELECT 1 +UNION ALL SELECT 1 UNION ALL SELECT 2; diff --git a/yql/essentials/tests/sql/suites/union/union_multiin.cfg b/yql/essentials/tests/sql/suites/union/union_multiin.cfg new file mode 100644 index 0000000000..311e41d04b --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_multiin.cfg @@ -0,0 +1,2 @@ +in Input input.txt +in Input2 input2.txt
\ No newline at end of file diff --git a/yql/essentials/tests/sql/suites/union/union_multiin.sql b/yql/essentials/tests/sql/suites/union/union_multiin.sql new file mode 100644 index 0000000000..b13293562a --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_multiin.sql @@ -0,0 +1,4 @@ +SELECT * FROM plato.Input +UNION +SELECT * FROM plato.Input2 +ORDER BY key, subkey, value; diff --git a/yql/essentials/tests/sql/suites/union/union_positional.sql b/yql/essentials/tests/sql/suites/union/union_positional.sql new file mode 100644 index 0000000000..3f3a15c1a2 --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_positional.sql @@ -0,0 +1,9 @@ +PRAGMA PositionalUnionAll; + +SELECT + 1 as y, + 2 as x +UNION +SELECT + 1 as x, + 2 as y;
\ No newline at end of file diff --git a/yql/essentials/tests/sql/suites/union/union_positional_mix.sql b/yql/essentials/tests/sql/suites/union/union_positional_mix.sql new file mode 100644 index 0000000000..52302030f4 --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_positional_mix.sql @@ -0,0 +1,10 @@ +PRAGMA PositionalUnionAll; + +SELECT + 1 as y, 2 as x +UNION +SELECT + 1 as x, 2 as y +UNION ALL +SELECT + 1 as y, 2 as x;
\ No newline at end of file diff --git a/yql/essentials/tests/sql/suites/union/union_trivial.sql b/yql/essentials/tests/sql/suites/union/union_trivial.sql new file mode 100644 index 0000000000..e4112d94ce --- /dev/null +++ b/yql/essentials/tests/sql/suites/union/union_trivial.sql @@ -0,0 +1,4 @@ +SELECT * FROM plato.Input +UNION +SELECT * FROM plato.Input +ORDER BY key; |