aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs
diff options
context:
space:
mode:
authorudovichenko-r <udovichenko-r@yandex-team.com>2024-11-12 22:07:02 +0300
committerudovichenko-r <udovichenko-r@yandex-team.com>2024-11-12 22:21:07 +0300
commitfa5655229271d7a09cce8033d1097f1b03daf94e (patch)
tree5922c2db17789e411b6cc46069c66188e834f28b /yql/essentials/udfs
parent77c13da33ae29c033359e516ac2eb55a6c3d5e9e (diff)
downloadydb-fa5655229271d7a09cce8033d1097f1b03daf94e.tar.gz
Apply GH commits
Apply GH: Extract prefix and entries in backup-related sql (#10807) Apply GH: Fix syntax for Column Family (#10781) Apply GH: Case-insensitive mode for searching modules and functions (#10842) Apply GH: Fixed i/o for pg_proc (#10914) Apply GH: An option to render SQL transalation with Seq! (#11015) commit_hash:d2d2fcdef2bbd0434236aef325aa071c7e39c526
Diffstat (limited to 'yql/essentials/udfs')
-rw-r--r--yql/essentials/udfs/common/datetime2/test/canondata/result.json5
-rw-r--r--yql/essentials/udfs/common/datetime2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt36
-rw-r--r--yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.cfg1
-rw-r--r--yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.sql3
-rw-r--r--yql/essentials/udfs/common/yson2/test/canondata/result.json13
-rw-r--r--yql/essentials/udfs/common/yson2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt65
-rw-r--r--yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.cfg2
-rw-r--r--yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.sql3
8 files changed, 124 insertions, 4 deletions
diff --git a/yql/essentials/udfs/common/datetime2/test/canondata/result.json b/yql/essentials/udfs/common/datetime2/test/canondata/result.json
index 6e475365ea..0ab7651bdc 100644
--- a/yql/essentials/udfs/common/datetime2/test/canondata/result.json
+++ b/yql/essentials/udfs/common/datetime2/test/canondata/result.json
@@ -54,6 +54,11 @@
"uri": "file://test.test_Get_/results.txt"
}
],
+ "test.test[IgnoreCaseFuncs]": [
+ {
+ "uri": "file://test.test_IgnoreCaseFuncs_/results.txt"
+ }
+ ],
"test.test[ImplicitSplit]": [
{
"uri": "file://test.test_ImplicitSplit_/results.txt"
diff --git a/yql/essentials/udfs/common/datetime2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt b/yql/essentials/udfs/common/datetime2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt
new file mode 100644
index 0000000000..2da9f03e5c
--- /dev/null
+++ b/yql/essentials/udfs/common/datetime2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt
@@ -0,0 +1,36 @@
+[
+ {
+ "Write" = [
+ {
+ "Type" = [
+ "ListType";
+ [
+ "StructType";
+ [
+ [
+ "column0";
+ [
+ "DataType";
+ "Uint16"
+ ]
+ ];
+ [
+ "column1";
+ [
+ "DataType";
+ "Uint8"
+ ]
+ ]
+ ]
+ ]
+ ];
+ "Data" = [
+ [
+ "2001";
+ "1"
+ ]
+ ]
+ }
+ ]
+ }
+] \ No newline at end of file
diff --git a/yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.cfg b/yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.cfg
new file mode 100644
index 0000000000..9a686c75c4
--- /dev/null
+++ b/yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.cfg
@@ -0,0 +1 @@
+scan_udfs \ No newline at end of file
diff --git a/yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.sql b/yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.sql
new file mode 100644
index 0000000000..4378b0a6a6
--- /dev/null
+++ b/yql/essentials/udfs/common/datetime2/test/cases/IgnoreCaseFuncs.sql
@@ -0,0 +1,3 @@
+pragma config.flags("UdfIgnoreCase");
+select
+ DATETIME::GETYEAR(Date('2001-01-01')),datetime::getmonth(Date('2001-01-01'))
diff --git a/yql/essentials/udfs/common/yson2/test/canondata/result.json b/yql/essentials/udfs/common/yson2/test/canondata/result.json
index e8db385e45..962904ec60 100644
--- a/yql/essentials/udfs/common/yson2/test/canondata/result.json
+++ b/yql/essentials/udfs/common/yson2/test/canondata/result.json
@@ -94,6 +94,11 @@
"uri": "file://test.test_GoodForYsonBadForJson_/results.txt"
}
],
+ "test.test[IgnoreCaseFuncs]": [
+ {
+ "uri": "file://test.test_IgnoreCaseFuncs_/results.txt"
+ }
+ ],
"test.test[ImplicitFromRes]": [
{
"uri": "file://test.test_ImplicitFromRes_/results.txt"
@@ -109,14 +114,14 @@
"uri": "file://test.test_JsonSerializeSkipMapEntity_/results.txt"
}
],
- "test.test[JsonWithUtf8]": [
+ "test.test[JsonWithNanAsString]": [
{
- "uri": "file://test.test_JsonWithUtf8_/results.txt"
+ "uri": "file://test.test_JsonWithNanAsString_/results.txt"
}
],
- "test.test[JsonWithNanAsString]": [
+ "test.test[JsonWithUtf8]": [
{
- "uri": "file://test.test_JsonWithNanAsString_/results.txt"
+ "uri": "file://test.test_JsonWithUtf8_/results.txt"
}
],
"test.test[Lists]": [
diff --git a/yql/essentials/udfs/common/yson2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt b/yql/essentials/udfs/common/yson2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt
new file mode 100644
index 0000000000..b6d6e7d1db
--- /dev/null
+++ b/yql/essentials/udfs/common/yson2/test/canondata/test.test_IgnoreCaseFuncs_/results.txt
@@ -0,0 +1,65 @@
+[
+ {
+ "Write" = [
+ {
+ "Type" = [
+ "ListType";
+ [
+ "StructType";
+ [
+ [
+ "column0";
+ [
+ "OptionalType";
+ [
+ "DataType";
+ "Yson"
+ ]
+ ]
+ ];
+ [
+ "column1";
+ [
+ "DataType";
+ "Yson"
+ ]
+ ];
+ [
+ "column2";
+ [
+ "DataType";
+ "Yson"
+ ]
+ ];
+ [
+ "column3";
+ [
+ "OptionalType";
+ [
+ "DataType";
+ "Uint64"
+ ]
+ ]
+ ]
+ ]
+ ]
+ ];
+ "Data" = [
+ [
+ [
+ []
+ ];
+ {};
+ {
+ "$type" = "int64";
+ "$value" = "1"
+ };
+ [
+ "3"
+ ]
+ ]
+ ]
+ }
+ ]
+ }
+] \ No newline at end of file
diff --git a/yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.cfg b/yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.cfg
new file mode 100644
index 0000000000..135ef7371d
--- /dev/null
+++ b/yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.cfg
@@ -0,0 +1,2 @@
+scan_udfs
+
diff --git a/yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.sql b/yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.sql
new file mode 100644
index 0000000000..d57d650984
--- /dev/null
+++ b/yql/essentials/udfs/common/yson2/test/cases/IgnoreCaseFuncs.sql
@@ -0,0 +1,3 @@
+pragma config.flags("UdfIgnoreCase");
+select
+ YSON::PARSE('[]'),yson::parse('{}'y),yson::from(1),yson::getlength('[1;2;3]'y);