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/bigdate/misc.sql | |
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/bigdate/misc.sql')
-rw-r--r-- | yql/essentials/tests/sql/suites/bigdate/misc.sql | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/yql/essentials/tests/sql/suites/bigdate/misc.sql b/yql/essentials/tests/sql/suites/bigdate/misc.sql new file mode 100644 index 0000000000..510a8dc6d6 --- /dev/null +++ b/yql/essentials/tests/sql/suites/bigdate/misc.sql @@ -0,0 +1,27 @@ +pragma warning("disable","4510"); + +$date32_min = unwrap(cast(-53375809 as date32)); +$date32_max = unwrap(cast(53375807 as date32)); +$datetime64_min = unwrap(cast(-4611669897600 as datetime64)); +$datetime64_max = unwrap(cast(4611669811199 as datetime64)); +$timestamp64_min = unwrap(cast(-4611669897600000000 as timestamp64)); +$timestamp64_max = unwrap(cast(4611669811199999999 as timestamp64)); +$interval64_min = unwrap(cast(-9223339708799999999 as interval64)); +$interval64_max = unwrap(cast(9223339708799999999 as interval64)); + +select 1, ListFromRange(date32("1969-12-30"), date32("1970-1-5")) +, 2, ListFromRange(date32("1970-1-3"), date32("1969-12-30")) +, 3, ListFromRange(date32("1969-12-30"), date32("1970-1-5"), interval("P2D")) +, 4, ListFromRange(date32("1969-12-30"), date32("1970-1-5"), interval64("P2D")) +, 5, ListFromRange(date32("1970-1-5"), date32("1969-12-30")) +, 6, ListFromRange(date32("1970-1-5"), date32("1969-12-30"), interval("P2D")) +, 7, ListFromRange(date32("1970-1-5"), date32("1969-12-29"), interval("-P2D")) +, 8, ListFromRange(datetime64("1969-12-31T23:59:57Z"), datetime64("1970-1-1T0:0:3Z")) +, 9, ListFromRange(datetime64("1969-12-31T23:59:57Z"), datetime64("1970-1-1T0:0:3Z"), interval("PT2S")) +, 10, ListFromRange(datetime64("1969-12-31T23:59:57Z"), datetime64("1970-1-1T0:0:3Z"), interval64("PT2S")) +, 11, ListFromRange(timestamp64("1969-12-31T23:59:57Z"), timestamp64("1970-1-1T0:0:3Z"), interval("PT2.5S")) +, 12, ListFromRange($date32_min, $date32_max, interval64("P53375808D")) +, 13, ListFromRange($datetime64_min, $datetime64_max, interval64("P53375808D")) +, 14, ListFromRange($timestamp64_min, $timestamp64_max, interval64("P53375808D")) +, 15, ListFromRange($interval64_min, $interval64_max, interval64("P53375808D")) +; |