aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/tests/sql/suites/params/primitives.sql
diff options
context:
space:
mode:
authorMaxim Yurchuk <maxim-yurchuk@ydb.tech>2024-11-20 17:37:57 +0000
committerGitHub <noreply@github.com>2024-11-20 17:37:57 +0000
commitf76323e9b295c15751e51e3443aa47a36bee8023 (patch)
tree4113c8cad473a33e0f746966e0cf087252fa1d7a /yql/essentials/tests/sql/suites/params/primitives.sql
parent753ecb8d410a4cb459c26f3a0082fb2d1724fe63 (diff)
parenta7b9a6afea2a9d7a7bfac4c5eb4c1a8e60adb9e6 (diff)
downloadydb-f76323e9b295c15751e51e3443aa47a36bee8023.tar.gz
Merge pull request #11788 from ydb-platform/mergelibs-241120-1113
Library import 241120-1113
Diffstat (limited to 'yql/essentials/tests/sql/suites/params/primitives.sql')
-rw-r--r--yql/essentials/tests/sql/suites/params/primitives.sql30
1 files changed, 30 insertions, 0 deletions
diff --git a/yql/essentials/tests/sql/suites/params/primitives.sql b/yql/essentials/tests/sql/suites/params/primitives.sql
new file mode 100644
index 0000000000..42aeef5bab
--- /dev/null
+++ b/yql/essentials/tests/sql/suites/params/primitives.sql
@@ -0,0 +1,30 @@
+/* syntax version 1 */
+declare $x1 as int;
+declare $x2 as Double;
+declare $x3 as Bool;
+declare $x4 as Float;
+declare $x5 as String; -- unicode
+declare $x6 as Int64;
+declare $x7 as Uint64;
+declare $x8 as String; -- binary
+declare $x9 as Utf8;
+declare $x10 as Uuid;
+declare $x11 as String?; -- null
+declare $x12 as String?; -- not null
+declare $x13 as Yson;
+declare $x14 as Json;
+declare $x15 as datetime;
+declare $x16 as date;
+declare $x17 as timestamp;
+declare $x18 as interval;
+declare $x19 as tzdatetime;
+declare $x20 as tztimestamp;
+declare $x21 as tzdate;
+declare $x22 as Void;
+declare $x23 as Decimal(21,8);
+select 2 * $x1, -$x2 * 10, not $x3, -$x4, $x5 || "2018", -$x6, $x7 + 1, Length($x8),
+ Unicode::GetLength($x9), cast($x10 as string), coalesce($x11, "XYZ"), coalesce($x12, "XYZ"),
+ Yson::LookupInt64($x13, 'a'), Yson::ConvertToInt64($x14.b),
+ cast($x15 as string), cast($x16 as string), cast($x17 as string), cast($x18 as string),
+ cast($x19 as string), cast($x20 as string), cast($x21 as string),
+ $x22, cast($x23 as string);