diff options
author | udovichenko-r <udovichenko-r@yandex-team.com> | 2024-11-23 22:29:07 +0300 |
---|---|---|
committer | udovichenko-r <udovichenko-r@yandex-team.com> | 2024-11-23 22:43:39 +0300 |
commit | 8b9f13e29dea8f76f11579aae5344ac571d5e604 (patch) | |
tree | 0449b096aa6444a36ba8cc5a3b3c64e0e7b94ed1 /yql/essentials/tests/sql/suites/schema | |
parent | 284518c9e820058795b9e7cc44ff26b25f3f455b (diff) | |
download | ydb-8b9f13e29dea8f76f11579aae5344ac571d5e604.tar.gz |
Check custom error in xfail tests. Remove canonization from dq/hybrid tests
1. xfail тесты теперь должны содержать спец комментарий `custom error` с ожидаемым текстом ошибки
2. Все suites для xfail размечены спец. коментариями, некоторые тесты разбиты на несколько
3. Включены тесты с Python и Javascript udf для yt провайдера и переканонизированы (были отключены в github)
4. Для тяжелых xfail тестов аналогично убрана канонизация и включена проверка по спец. коментарию
5. Из dq_file/hybrid тестов убрана канонизация. Осталась только кросс-проверка результатов с yqlrun и блочным режимом
6. В dqrun теперь используется exception_policy вместо fail_policy (для корректной выдачи ошибок в тестах)
commit_hash:a92b3835f86b0c01225e81e3f28bb6d11d8d67a3
Diffstat (limited to 'yql/essentials/tests/sql/suites/schema')
-rw-r--r-- | yql/essentials/tests/sql/suites/schema/read_schema_change_other.sql | 1 | ||||
-rw-r--r-- | yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.cfg (renamed from yql/essentials/tests/sql/suites/schema/select_all_inferschema_range-empty_fail.cfg) | 0 | ||||
-rw-r--r-- | yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.sql | 3 | ||||
-rw-r--r-- | yql/essentials/tests/sql/suites/schema/user_schema_append.sql | 2 |
4 files changed, 5 insertions, 1 deletions
diff --git a/yql/essentials/tests/sql/suites/schema/read_schema_change_other.sql b/yql/essentials/tests/sql/suites/schema/read_schema_change_other.sql index 7be00eab9c..eb96315c2a 100644 --- a/yql/essentials/tests/sql/suites/schema/read_schema_change_other.sql +++ b/yql/essentials/tests/sql/suites/schema/read_schema_change_other.sql @@ -1 +1,2 @@ +/* custom error:It is forbidden to specify the column '_other'*/ select * from plato.Input with schema Struct<_other:Yson>; diff --git a/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range-empty_fail.cfg b/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.cfg index c2ff0dfe88..c2ff0dfe88 100644 --- a/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range-empty_fail.cfg +++ b/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.cfg diff --git a/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.sql b/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.sql new file mode 100644 index 0000000000..60e0887a84 --- /dev/null +++ b/yql/essentials/tests/sql/suites/schema/select_all_inferschema_range_empty_fail.sql @@ -0,0 +1,3 @@ +/* custom error:Cannot infer schema for table Input2, first 1 row(s) has no columns*/ +pragma yt.InferSchemaTableCountThreshold="0"; +select * from plato.range(``, Input1, Input3) with inferscheme; diff --git a/yql/essentials/tests/sql/suites/schema/user_schema_append.sql b/yql/essentials/tests/sql/suites/schema/user_schema_append.sql index 5ec9e939bd..f1b86675c3 100644 --- a/yql/essentials/tests/sql/suites/schema/user_schema_append.sql +++ b/yql/essentials/tests/sql/suites/schema/user_schema_append.sql @@ -1,4 +1,4 @@ -/* syntax version 1 */ +/* custom error:Table "Input" row type differs from the written row type: Struct<-subkey:String>*/ USE plato; INSERT INTO Input |