diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-11-20 17:37:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-20 17:37:57 +0000 |
commit | f76323e9b295c15751e51e3443aa47a36bee8023 (patch) | |
tree | 4113c8cad473a33e0f746966e0cf087252fa1d7a /yql/essentials/tests/sql/suites/solomon | |
parent | 753ecb8d410a4cb459c26f3a0082fb2d1724fe63 (diff) | |
parent | a7b9a6afea2a9d7a7bfac4c5eb4c1a8e60adb9e6 (diff) | |
download | ydb-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/solomon')
20 files changed, 107 insertions, 0 deletions
diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingAggregation.cfg b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingAggregation.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingAggregation.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingAggregation.sql b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingAggregation.sql new file mode 100644 index 0000000000..dda21f9ce6 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingAggregation.sql @@ -0,0 +1,6 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + `downsampling.aggregation` = "ABC" +); diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingDisabled.cfg b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingDisabled.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingDisabled.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingDisabled.sql b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingDisabled.sql new file mode 100644 index 0000000000..61ca6e90b5 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingDisabled.sql @@ -0,0 +1,6 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + `downsampling.disabled` = "ABC" +); diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingFill.cfg b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingFill.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingFill.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingFill.sql b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingFill.sql new file mode 100644 index 0000000000..cf7dac7f35 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingFill.sql @@ -0,0 +1,6 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + `downsampling.fill` = "ABC" +); diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingInterval.cfg b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingInterval.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingInterval.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/BadDownsamplingInterval.sql b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingInterval.sql new file mode 100644 index 0000000000..e5f24c16e9 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BadDownsamplingInterval.sql @@ -0,0 +1,6 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + `downsampling.grid_interval` = "ABC" +); diff --git a/yql/essentials/tests/sql/suites/solomon/Basic.sql b/yql/essentials/tests/sql/suites/solomon/Basic.sql new file mode 100644 index 0000000000..d59089121f --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/Basic.sql @@ -0,0 +1,5 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z" +); diff --git a/yql/essentials/tests/sql/suites/solomon/BrokenJsonResponse.cfg b/yql/essentials/tests/sql/suites/solomon/BrokenJsonResponse.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BrokenJsonResponse.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/BrokenJsonResponse.sql b/yql/essentials/tests/sql/suites/solomon/BrokenJsonResponse.sql new file mode 100644 index 0000000000..c7fd10d9e3 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/BrokenJsonResponse.sql @@ -0,0 +1,5 @@ +SELECT * FROM local_solomon.broken_json WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z" +); diff --git a/yql/essentials/tests/sql/suites/solomon/Downsampling.sql b/yql/essentials/tests/sql/suites/solomon/Downsampling.sql new file mode 100644 index 0000000000..976cbc696a --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/Downsampling.sql @@ -0,0 +1,9 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + `downsampling.disabled` = "true", + `downsampling.aggregation` = "SUM", + `downsampling.grid_interval` = "25", + `downsampling.fill` = "PREVIOUS" +); diff --git a/yql/essentials/tests/sql/suites/solomon/DownsamplingValidSettings.sql b/yql/essentials/tests/sql/suites/solomon/DownsamplingValidSettings.sql new file mode 100644 index 0000000000..c1f59e9de9 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/DownsamplingValidSettings.sql @@ -0,0 +1,17 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + + `downsampling.aggregation` = "AVG", + `downsampling.aggregation` = "COUNT", + `downsampling.aggregation` = "DEFAULT_AGGREGATION", + `downsampling.aggregation` = "LAST", + `downsampling.aggregation` = "MAX", + `downsampling.aggregation` = "MIN", + `downsampling.aggregation` = "SUM", + + `downsampling.fill` = "NONE", + `downsampling.fill` = "NULL", + `downsampling.fill` = "PREVIOUS" +); diff --git a/yql/essentials/tests/sql/suites/solomon/InvalidProject.cfg b/yql/essentials/tests/sql/suites/solomon/InvalidProject.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/InvalidProject.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/InvalidProject.sql b/yql/essentials/tests/sql/suites/solomon/InvalidProject.sql new file mode 100644 index 0000000000..a9275c07d1 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/InvalidProject.sql @@ -0,0 +1,5 @@ +SELECT * FROM local_solomon.invalid WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z" +); diff --git a/yql/essentials/tests/sql/suites/solomon/LabelColumns.sql b/yql/essentials/tests/sql/suites/solomon/LabelColumns.sql new file mode 100644 index 0000000000..0ff5b736c4 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/LabelColumns.sql @@ -0,0 +1,6 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + labels = "downsampling.disabled, downsampling.fill, project, downsampling.gridMillis" +); diff --git a/yql/essentials/tests/sql/suites/solomon/Subquery.sql b/yql/essentials/tests/sql/suites/solomon/Subquery.sql new file mode 100644 index 0000000000..d3886b00ff --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/Subquery.sql @@ -0,0 +1,15 @@ +DEFINE SUBQUERY $q($p) AS + +SELECT * FROM local_solomon.my_project WITH ( + program = $p, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + `downsampling.disabled` = "true", + `downsampling.aggregation` = "SUM", + `downsampling.grid_interval` = "25", + `downsampling.fill` = "PREVIOUS" +); + +END DEFINE; + +SELECT * FROM $q(@@{}@@); diff --git a/yql/essentials/tests/sql/suites/solomon/UnknownSetting.cfg b/yql/essentials/tests/sql/suites/solomon/UnknownSetting.cfg new file mode 100644 index 0000000000..58b70eefbe --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/UnknownSetting.cfg @@ -0,0 +1,2 @@ +providers solomon +xfail diff --git a/yql/essentials/tests/sql/suites/solomon/UnknownSetting.sql b/yql/essentials/tests/sql/suites/solomon/UnknownSetting.sql new file mode 100644 index 0000000000..0e51464d23 --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/UnknownSetting.sql @@ -0,0 +1,6 @@ +SELECT * FROM local_solomon.my_project WITH ( + program = @@{}@@, + from = "2023-12-08T14:40:39Z", + to = "2023-12-08T14:45:39Z", + unk = "ABC" +); diff --git a/yql/essentials/tests/sql/suites/solomon/default.cfg b/yql/essentials/tests/sql/suites/solomon/default.cfg new file mode 100644 index 0000000000..3e2499f96d --- /dev/null +++ b/yql/essentials/tests/sql/suites/solomon/default.cfg @@ -0,0 +1 @@ +providers solomon |