From 49ea151e8366d3f2b7b25b19a5b623cccd07633d Mon Sep 17 00:00:00 2001 From: Dousir9 <736191200@qq.com> Date: Wed, 27 Nov 2024 15:24:56 +0800 Subject: [PATCH] Revert "ci: fix flaky test (#16945)" This reverts commit efcbac39f76c8d97cdde42ed2225825b3298c66d. --- .../12_0005_changes_select.result | 6 +- .../16_flashback/16_0001_flashback.result | 6 +- .../17_0004_alter_table_set_options.result | 16 ++--- ...0005_alter_table_modify_column_type.result | 10 +-- .../18_rbac/18_0001_udf_priv.result | 62 +++++++++---------- .../18_rbac/18_0002_ownership_cover.result | 14 ++--- .../18_rbac/18_0003_db_visibility.result | 14 ++--- .../18_rbac/18_0004_view_privilege.result | 8 +-- .../18_0005_show_grants_with_dropped.result | 6 +- .../18_rbac/18_0007_privilege_access.result | 48 +++++++------- .../18_rbac/18_0009_set_role.result | 16 ++--- .../18_rbac/18_0013_column_privilege.result | 8 +-- .../20+_others/20_0013_pretty_error.result | 16 ++--- .../20+_others/20_0018_stackoverflow.result | 2 +- ..._set_cache_capacity_privilege_check.result | 4 +- .../00_0004_copy_with_max_files.result | 4 +- ...00_0011_distributed_copy_into_table.result | 2 +- .../00_stage/00_0012_stage_priv.result | 26 ++++---- .../00_stage/00_0013_connection_errors.result | 12 ++-- ...create_table_with_block_per_segment.result | 2 +- .../09_0000_invalid_utf8.result | 2 +- .../09_0001_json_response.result | 3 +- .../09_http_handler/09_0001_json_response.sh | 4 +- .../02_0004_attach_table.result | 2 +- .../02_0005_attach_table_read_only.result | 24 +++---- .../04_0001_check_mutations.result | 12 ++-- .../05_stream/05_0002_ee_stream_create.result | 10 +-- 27 files changed, 170 insertions(+), 169 deletions(-) diff --git a/tests/suites/0_stateless/12_time_travel/12_0005_changes_select.result b/tests/suites/0_stateless/12_time_travel/12_0005_changes_select.result index 4fa7558d40a2..92731d93ffa9 100644 --- a/tests/suites/0_stateless/12_time_travel/12_0005_changes_select.result +++ b/tests/suites/0_stateless/12_time_travel/12_0005_changes_select.result @@ -12,7 +12,7 @@ changes default snapshot at the first insertion end the deletion changes append_only snapshot at the first insertion 3 3 INSERT false not find end point -Error: APIError: QueryFailed: [2013]No historical data found at given point +Error: APIError: ResponseError with 2013: No historical data found at given point changes default timestamp at the first insertion end the deletion 1 1 DELETE false 2 1 DELETE true @@ -20,6 +20,6 @@ changes default timestamp at the first insertion end the deletion changes append_only timestamp at the first insertion 3 3 INSERT false change tracking is disabled -Error: APIError: QueryFailed: [2733]Change tracking is not enabled on table 'default'.'t12_0005' +Error: APIError: ResponseError with 2733: Change tracking is not enabled on table 'default'.'t12_0005' change tracking has been missing for the time range requested -Error: APIError: QueryFailed: [2733]Change tracking has been missing for the time range requested on table 'default'.'t12_0005' +Error: APIError: ResponseError with 2733: Change tracking has been missing for the time range requested on table 'default'.'t12_0005' diff --git a/tests/suites/0_stateless/16_flashback/16_0001_flashback.result b/tests/suites/0_stateless/16_flashback/16_0001_flashback.result index ea829320f452..92b7b54c7ace 100644 --- a/tests/suites/0_stateless/16_flashback/16_0001_flashback.result +++ b/tests/suites/0_stateless/16_flashback/16_0001_flashback.result @@ -11,8 +11,8 @@ true checking that after flashback to the first snapshot, there should be only 1 snapshot visible true flash back to snapshot id that not exist should report error 1105 -Error: APIError: QueryFailed: [2013]No historical data found at given point +Error: APIError: ResponseError with 2013: No historical data found at given point flash back to timestamp that not exist should report error 1105 -Error: APIError: QueryFailed: [2013]No historical data found at given point +Error: APIError: ResponseError with 2013: No historical data found at given point flash back to point that does not visible to the current snapshot should report error 1105 -Error: APIError: QueryFailed: [2013]No historical data found at given point +Error: APIError: ResponseError with 2013: No historical data found at given point diff --git a/tests/suites/0_stateless/17_altertable/17_0004_alter_table_set_options.result b/tests/suites/0_stateless/17_altertable/17_0004_alter_table_set_options.result index 5285368b2ce8..ef1429c9f760 100644 --- a/tests/suites/0_stateless/17_altertable/17_0004_alter_table_set_options.result +++ b/tests/suites/0_stateless/17_altertable/17_0004_alter_table_set_options.result @@ -1,8 +1,8 @@ -Error: APIError: QueryFailed: [1301]table option snapshot_location is invalid for alter table statement -Error: APIError: QueryFailed: [1301]table option snapshot_loc is invalid for alter table statement -Error: APIError: QueryFailed: [1301]table option extrenal_location is invalid for alter table statement -Error: APIError: QueryFailed: [1301]table option abc is invalid for alter table statement -Error: APIError: QueryFailed: [1301]invalid block_per_segment option, can't be over 1000 -Error: APIError: QueryFailed: [1301]can't change storage_format for alter table statement -Error: APIError: QueryFailed: [1006]Unable to get field named "b". Valid fields: ["a"] -Error: APIError: QueryFailed: [1301]Unsupported data type 'Decimal(4, 2)' for bloom index +Error: APIError: ResponseError with 1301: table option snapshot_location is invalid for alter table statement +Error: APIError: ResponseError with 1301: table option snapshot_loc is invalid for alter table statement +Error: APIError: ResponseError with 1301: table option extrenal_location is invalid for alter table statement +Error: APIError: ResponseError with 1301: table option abc is invalid for alter table statement +Error: APIError: ResponseError with 1301: invalid block_per_segment option, can't be over 1000 +Error: APIError: ResponseError with 1301: can't change storage_format for alter table statement +Error: APIError: ResponseError with 1006: Unable to get field named "b". Valid fields: ["a"] +Error: APIError: ResponseError with 1301: Unsupported data type 'Decimal(4, 2)' for bloom index diff --git a/tests/suites/0_stateless/17_altertable/17_0005_alter_table_modify_column_type.result b/tests/suites/0_stateless/17_altertable/17_0005_alter_table_modify_column_type.result index 139dc0df5d10..4d6168291831 100644 --- a/tests/suites/0_stateless/17_altertable/17_0005_alter_table_modify_column_type.result +++ b/tests/suites/0_stateless/17_altertable/17_0005_alter_table_modify_column_type.result @@ -6,12 +6,12 @@ c INT NO 0 a FLOAT NO 0 b VARCHAR NO '' c INT NO 0 -Error: APIError: QueryFailed: [1006]fail to auto cast column a (String) to column a (Float32) +Error: APIError: ResponseError with 1006: fail to auto cast column a (String) to column a (Float32) invalid float literal while evaluating function `to_float32('a')` in expr `to_float32(a)` -Error: APIError: QueryFailed: [1058]Cannot find column b -Error: APIError: QueryFailed: [1006]null value in column `a` of table `c` violates not-null constraint +Error: APIError: ResponseError with 1058: Cannot find column b +Error: APIError: ResponseError with 1006: null value in column `a` of table `c` violates not-null constraint 0 1 -Error: APIError: QueryFailed: [1006]invalid float literal while evaluating function `to_float32('a')` in expr `to_float32('a')` +Error: APIError: ResponseError with 1006: invalid float literal while evaluating function `to_float32('a')` in expr `to_float32('a')` 0 1 0 1 1.2 2 @@ -26,7 +26,7 @@ begin test default column not 2 begin test not NULL column 1 1 -Error: APIError: QueryFailed: [1006]null value in column `a` of table `f` violates not-null constraint +Error: APIError: ResponseError with 1006: null value in column `a` of table `f` violates not-null constraint 1 1 2 a VARCHAR NO '' diff --git a/tests/suites/0_stateless/18_rbac/18_0001_udf_priv.result b/tests/suites/0_stateless/18_rbac/18_0001_udf_priv.result index 8511a27b3112..d8978f191fad 100644 --- a/tests/suites/0_stateless/18_rbac/18_0001_udf_priv.result +++ b/tests/suites/0_stateless/18_rbac/18_0001_udf_priv.result @@ -1,42 +1,42 @@ === test UDF priv === Only Has Privilege on f2 === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. select 1 from (select f2(f1(10))); -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. select * from system.one where f2(f1(1)); -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 1 NULL -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f1 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. === Only Has Privilege on f1 === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 1 NULL -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF f2 for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. === Has Privilege on f1, f2 === 1 2 @@ -55,4 +55,4 @@ Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is requ 100 200 4 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF b for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF b for user 'test-user'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. diff --git a/tests/suites/0_stateless/18_rbac/18_0002_ownership_cover.result b/tests/suites/0_stateless/18_rbac/18_0002_ownership_cover.result index 5f853c770b11..529457670d4f 100644 --- a/tests/suites/0_stateless/18_rbac/18_0002_ownership_cover.result +++ b/tests/suites/0_stateless/18_rbac/18_0002_ownership_cover.result @@ -11,9 +11,9 @@ 0 200 === test role r_0002 === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Usage] is required on UDF a for user 'owner'@'%' with roles [public,r_0002]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE hello for user 'owner'@'%' with roles [public,r_0002]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'d_0002'.'t' for user 'owner'@'%' with roles [public,r_0002] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Usage] is required on UDF a for user 'owner'@'%' with roles [public,r_0002]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE hello for user 'owner'@'%' with roles [public,r_0002]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'d_0002'.'t' for user 'owner'@'%' with roles [public,r_0002] === test ownership: show stmt === public 0 false false role1 0 true true @@ -35,7 +35,7 @@ t t1 t t1 -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'db_a' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'db_a' t t1 === fix_issue_14572: test drop role; grant ownership === @@ -48,13 +48,13 @@ t drop_role1 OWNERSHIP a ROLE drop_role1 GRANT OWNERSHIP ON 'default'.'a'.* TO ROLE `drop_role1` OWNERSHIP default.a.t ROLE drop_role1 GRANT OWNERSHIP ON 'default'.'a'.'t' TO ROLE `drop_role1` == test create database privilege and drop object === -Error: APIError: QueryFailed: [1003]Unknown database 'c' +Error: APIError: ResponseError with 1003: Unknown database 'c' === test db owner can access all table under this db === -Error: APIError: QueryFailed: [1063]Permission denied: User 'u1'@'%' does not have the required privileges for database 'default' +Error: APIError: ResponseError with 1063: Permission denied: User 'u1'@'%' does not have the required privileges for database 'default' t1 t2 1 2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db1'.'t1' for user 'u2'@'%' with roles [public,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db1'.'t1' for user 'u2'@'%' with roles [public,role2] 2 OWNERSHIP default.db1.t2 ROLE role2 GRANT OWNERSHIP ON 'default'.'db1'.'t2' TO ROLE `role2` diff --git a/tests/suites/0_stateless/18_rbac/18_0003_db_visibility.result b/tests/suites/0_stateless/18_rbac/18_0003_db_visibility.result index 03f352461045..1ff68e3a1f7b 100644 --- a/tests/suites/0_stateless/18_rbac/18_0003_db_visibility.result +++ b/tests/suites/0_stateless/18_rbac/18_0003_db_visibility.result @@ -2,7 +2,7 @@ information_schema system 1 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u1'@'%' with roles [public,role1] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u1'@'%' with roles [public,role1] db1 information_schema system @@ -23,9 +23,9 @@ system db_u3 information_schema system -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db1'.'t1' for user 'u3'@'%' with roles [public,role2] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db2'.'t2' for user 'u3'@'%' with roles [public,role2] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u3'@'%' with roles [public,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db1'.'t1' for user 'u3'@'%' with roles [public,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db2'.'t2' for user 'u3'@'%' with roles [public,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u3'@'%' with roles [public,role2] 3 === test u3 with role2 and role1 secondary roles all === db1 @@ -35,7 +35,7 @@ information_schema system 1 2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u3'@'%' with roles [public,role1,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u3'@'%' with roles [public,role1,role2] 3 === test u3(set role1) with role2 and role1 secondary roles none === db1 @@ -44,8 +44,8 @@ information_schema system 1 2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u3'@'%' with roles [role1,public] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'db_u3'.'t3' for user 'u3'@'%' with roles [role1,public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db_root'.'t1' for user 'u3'@'%' with roles [role1,public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'db_u3'.'t3' for user 'u3'@'%' with roles [role1,public] === test root user === db1 db2 diff --git a/tests/suites/0_stateless/18_rbac/18_0004_view_privilege.result b/tests/suites/0_stateless/18_rbac/18_0004_view_privilege.result index 3cd3028747ba..2cd0a54bc712 100644 --- a/tests/suites/0_stateless/18_rbac/18_0004_view_privilege.result +++ b/tests/suites/0_stateless/18_rbac/18_0004_view_privilege.result @@ -14,14 +14,14 @@ >>>> insert into t values(1) >>>> revoke create on default.* from role role1 need failed: with 1063 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'owner'@'%' with roles [public,role1] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'owner'@'%' with roles [public,role1] need failed: with 1063 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'owner'@'%' with roles [public,role1] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'owner'@'%' with roles [public,role1] >>>> grant ownership on default.v_t_owner to role role1 >>>> create view v_t as select * from t >>>> create view v_t_union as select * from t union all select * from t_owner 'select * from v_t order by id' failed. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'v_t' for user 'owner'@'%' with roles [public,role1] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'v_t' for user 'owner'@'%' with roles [public,role1] >>>> grant select on default.v_t to owner >>>> grant select on default.v_t_union to owner 1 @@ -41,7 +41,7 @@ Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is req === create view as select view === >>>> revoke select on default.v_t from owner >>>> grant select on default.t to owner -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'v_t' for user 'owner'@'%' with roles [public,role1] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'v_t' for user 'owner'@'%' with roles [public,role1] >>>> grant select on default.v_t to owner >>>> grant select on default.t to owner >>>> grant select on default.v_t1 to owner diff --git a/tests/suites/0_stateless/18_rbac/18_0005_show_grants_with_dropped.result b/tests/suites/0_stateless/18_rbac/18_0005_show_grants_with_dropped.result index 96d9d3799780..d0f3eb5d0766 100644 --- a/tests/suites/0_stateless/18_rbac/18_0005_show_grants_with_dropped.result +++ b/tests/suites/0_stateless/18_rbac/18_0005_show_grants_with_dropped.result @@ -81,11 +81,11 @@ INSERT c_r1 ROLE role3 OWNERSHIP c_r1 ROLE account_admin SELECT,INSERT *.* NULL USER u1 GRANT SELECT,INSERT ON *.* TO 'u1'@'%' Need Err: -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Grant] is required on *.* for user 'u1'@'%' with roles [role1,role2] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Grant] is required on *.* for user 'u1'@'%' with roles [role1,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Grant] is required on *.* for user 'u1'@'%' with roles [role1,role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Grant] is required on *.* for user 'u1'@'%' with roles [role1,role2] UPDATE information_schema ROLE role3 GRANT UPDATE ON 'default'.'information_schema'.* TO ROLE `role3` INSERT c_r1 ROLE role3 GRANT INSERT ON 'default'.'c_r1'.* TO ROLE `role3` SELECT default.system.one ROLE role3 GRANT SELECT ON 'default'.'system'.'one' TO ROLE `role3` UPDATE,DELETE default.c_r1.t1 ROLE role3 GRANT UPDATE,DELETE ON 'default'.'c_r1'.'t1' TO ROLE `role3` -Error: APIError: QueryFailed: [2201]User 'role3%40test'@'%' does not exist. +Error: APIError: ResponseError with 2201: User 'role3%40test'@'%' does not exist. === clean up === diff --git a/tests/suites/0_stateless/18_rbac/18_0007_privilege_access.result b/tests/suites/0_stateless/18_rbac/18_0007_privilege_access.result index 7028cff3d9d4..9b12c0afb052 100644 --- a/tests/suites/0_stateless/18_rbac/18_0007_privilege_access.result +++ b/tests/suites/0_stateless/18_rbac/18_0007_privilege_access.result @@ -2,34 +2,34 @@ >>>> create database db01; >>>> drop database if exists dbnotexists; >>>> GRANT SELECT ON db01.tbnotexists TO 'test-user' -Error: APIError: QueryFailed: [1025]Unknown table 'tbnotexists' +Error: APIError: ResponseError with 1025: Unknown table 'tbnotexists' <<<< >>>> GRANT SELECT ON dbnotexists.* TO 'test-user' -Error: APIError: QueryFailed: [1003]Unknown database 'dbnotexists' +Error: APIError: ResponseError with 1003: Unknown database 'dbnotexists' <<<< === check list user's local stage === === no err === information_schema system test -- insert -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public] 1 2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Delete] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Delete] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] 1 2 test -- update -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Update] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Update] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] 2 3 test -- delete -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Delete] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Delete] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] true test -- insert overwrite 2 3 test -- optimize table -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Super] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Super] is required on 'default'.'default'.'t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] true test -- select 1 @@ -37,7 +37,7 @@ test -- select 1 1 test -- select view -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default2'.'v_t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default2'.'v_t20_0012' for user 'test-user'@'%' with roles [public,test-role1,test-role2] 1 test -- clustering_information true @@ -51,15 +51,15 @@ grant_db information_schema system test -- show tables from system -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'system' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'system' test -- show tables from grant_db t -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'system' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'system' test -- show columns from one from system dummy TINYINT UNSIGNED NO NULL NULL c1 INT NO NULL NULL 0 -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for table 'system.tasks' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for table 'system.tasks' catalog VARCHAR NO NULL NULL cluster_by VARCHAR NO NULL NULL comment VARCHAR NO NULL NULL @@ -82,24 +82,24 @@ table_id BIGINT UNSIGNED NO NULL NULL table_type VARCHAR NO NULL NULL total_columns BIGINT UNSIGNED NO NULL NULL updated_on TIMESTAMP NO NULL NULL -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'nogrant' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'nogrant' 1 0 0 0 === Test: show grants on privilege check === -Error: APIError: QueryFailed: [1063]Permission denied: privilege USAGE is required on udf root_func for user b. -Error: APIError: QueryFailed: [1063]Permission denied: privilege READ is required on stage root_stage for user b. Or no need to show the stage privilege -Error: APIError: QueryFailed: [1063]Permission denied: No privilege on database root_db for user b. -Error: APIError: QueryFailed: [1063]Permission denied: No privilege on table root_table for user b. -Error: APIError: QueryFailed: [1063]Permission denied: No privilege on table root_table for user b. -1 1 356 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'t1' for user 'b'@'%' with roles [public] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'b'@'%' with roles [public] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'t1' for user 'b'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege USAGE is required on udf root_func for user b. +Error: APIError: ResponseError with 1063: Permission denied: privilege READ is required on stage root_stage for user b. Or no need to show the stage privilege +Error: APIError: ResponseError with 1063: Permission denied: No privilege on database root_db for user b. +Error: APIError: ResponseError with 1063: Permission denied: No privilege on table root_table for user b. +Error: APIError: ResponseError with 1063: Permission denied: No privilege on table root_table for user b. +1 1 377 +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t1' for user 'b'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t' for user 'b'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s3 for user 'b'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'t1' for user 'b'@'%' with roles [public] a b/data_UUID_0000_00000000.parquet 1 0 NULL NULL === check db/table_id === Read s3 USER b GRANT Read ON STAGE s3 TO 'b'@'%' diff --git a/tests/suites/0_stateless/18_rbac/18_0009_set_role.result b/tests/suites/0_stateless/18_rbac/18_0009_set_role.result index 2613072ba8dd..b69e32684322 100644 --- a/tests/suites/0_stateless/18_rbac/18_0009_set_role.result +++ b/tests/suites/0_stateless/18_rbac/18_0009_set_role.result @@ -4,24 +4,24 @@ -- test 1: set role as testrole1, then SELECT current_role() testrole1 -- test 2: set a nonexistent role, a existed but not granted role, will fail -Error: APIError: QueryFailed: [2206]Invalid role nonexisting_role for current session, available: public,testrole1,testrole2,testrole3 -Error: APIError: QueryFailed: [2206]Invalid role testrole4 for current session, available: public,testrole1,testrole2,testrole3 +Error: APIError: ResponseError with 2206: Invalid role nonexisting_role for current session, available: public,testrole1,testrole2,testrole3 +Error: APIError: ResponseError with 2206: Invalid role testrole4 for current session, available: public,testrole1,testrole2,testrole3 -- test 3: set role as testrole1, secondary roles as NONE, can access table1, can not access table2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0015_table2' for user 'testuser1'@'%' with roles [testrole1,public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0015_table2' for user 'testuser1'@'%' with roles [testrole1,public] -- test 4: set role as testrole2, secondary roles as NONE, can access table2, can not access table1 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0015_table1' for user 'testuser1'@'%' with roles [testrole2,public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0015_table1' for user 'testuser1'@'%' with roles [testrole2,public] -- test 5: set role as testrole3, secondary roles as NONE, can access table2, can not access table1, because role3 inherited from role2 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0015_table1' for user 'testuser1'@'%' with roles [testrole3,public,testrole2] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Insert] is required on 'default'.'default'.'t20_0015_table1' for user 'testuser1'@'%' with roles [testrole3,public,testrole2] -- test 6: set role as testrole1, secondary roles as ALL, can access both table1 and table2 -- test 7: set role as testrole1, testrole2, secondary roles defaults as ALL, can both table1 and table2 -- test 8: not change role, secondary roles defaults as ALL, can both table1 and table2 -- test 9: set default role as testrole1, secondary roles as NONE, current role will still be testrole1 in another session testrole1 -- test 10: set default role as nonexisting_role, will fail -Error: APIError: QueryFailed: [2206]Invalid role nonexistedrole for current session, available: public,testrole1,testrole2,testrole3 +Error: APIError: ResponseError with 2206: Invalid role nonexistedrole for current session, available: public,testrole1,testrole2,testrole3 -- test 11: set secondary All | None, create object only check current role -Error: APIError: QueryFailed: [1063]Permission denied: privilege [CreateDatabase] is required on *.* for user 'test_c'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [CreateDatabase] is required on *.* for user 'test_c'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [CreateDatabase] is required on *.* for user 'test_c'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [CreateDatabase] is required on *.* for user 'test_c'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. OWNERSHIP db_c ROLE role_c GRANT OWNERSHIP ON 'default'.'db_c'.* TO ROLE `role_c` OWNERSHIP db_d ROLE role_c GRANT OWNERSHIP ON 'default'.'db_d'.* TO ROLE `role_c` OWNERSHIP db_e ROLE public GRANT OWNERSHIP ON 'default'.'db_e'.* TO ROLE `public` diff --git a/tests/suites/0_stateless/18_rbac/18_0013_column_privilege.result b/tests/suites/0_stateless/18_rbac/18_0013_column_privilege.result index 5a2337662b0b..0e6403f6038f 100644 --- a/tests/suites/0_stateless/18_rbac/18_0013_column_privilege.result +++ b/tests/suites/0_stateless/18_rbac/18_0013_column_privilege.result @@ -7,10 +7,10 @@ grant_db information_schema system === show tables === -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'system' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'system' t === use db === -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'system' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'system' === show columns === dummy TINYINT UNSIGNED NO NULL NULL c1 INT NO NULL NULL @@ -21,8 +21,8 @@ name VARCHAR NO NULL NULL update_on TIMESTAMP NO NULL NULL keywords VARCHAR NO NULL NULL reserved TINYINT UNSIGNED NO NULL NULL -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for database 'nogrant' -Error: APIError: QueryFailed: [1063]Permission denied: User 'a'@'%' does not have the required privileges for table 'nogrant.t' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'nogrant' +Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for table 'nogrant.t' === grant system to a === 0 0 diff --git a/tests/suites/0_stateless/20+_others/20_0013_pretty_error.result b/tests/suites/0_stateless/20+_others/20_0013_pretty_error.result index 6230fc24760f..229249895b8f 100644 --- a/tests/suites/0_stateless/20+_others/20_0013_pretty_error.result +++ b/tests/suites/0_stateless/20+_others/20_0013_pretty_error.result @@ -1,25 +1,25 @@ -Error: APIError: QueryFailed: [1065]error: +Error: APIError: ResponseError with 1065: error: --> SQL:1:8 | 1 | select * | ^ 'SELECT *' is used without specifying any tables in the FROM clause. -Error: APIError: QueryFailed: [1025]error: +Error: APIError: ResponseError with 1025: error: --> SQL:1:15 | 1 | select * from t | ^ Unknown table "default"."default".t . -Error: APIError: QueryFailed: [1008]error: +Error: APIError: ResponseError with 1008: error: --> SQL:1:8 | 1 | select base64(1) | ^^^^^^^^^ no function matches the given name: 'base64', do you mean 'to_base64'? -Error: APIError: QueryFailed: [1065]error: +Error: APIError: ResponseError with 1065: error: --> SQL:1:8 | 1 | select to_base64(1) @@ -30,19 +30,19 @@ candidate functions: to_base64(Binary NULL) :: String NULL : unable to unify `UInt8` with `Binary` -Error: APIError: QueryFailed: [1006]invalid digit found in string while evaluating function `to_uint64('a')` in expr `to_uint64('a')`, during run expr: `1 + to_uint64('a')` -Error: APIError: QueryFailed: [1025]error: +Error: APIError: ResponseError with 1006: invalid digit found in string while evaluating function `to_uint64('a')` in expr `to_uint64('a')`, during run expr: `1 + to_uint64('a')` +Error: APIError: ResponseError with 1025: error: --> SQL:1:20 | 1 | select t1.a:z from t | ^ Unknown table "default"."default".t . -Error: APIError: QueryFailed: [1065]error: +Error: APIError: ResponseError with 1065: error: --> SQL:1:33 | 1 | select * from t2 join t3 using (c) | ^ column c specified in USING clause does not exist in left table -Error: APIError: QueryFailed: [1025]Unknown table 't' +Error: APIError: ResponseError with 1025: Unknown table 't' diff --git a/tests/suites/0_stateless/20+_others/20_0018_stackoverflow.result b/tests/suites/0_stateless/20+_others/20_0018_stackoverflow.result index a86b3c605375..742445fce793 100644 --- a/tests/suites/0_stateless/20+_others/20_0018_stackoverflow.result +++ b/tests/suites/0_stateless/20+_others/20_0018_stackoverflow.result @@ -1 +1 @@ -Error: APIError: QueryFailed: [1006]divided by zero while evaluating function `divide(0, 0)` in expr `t.a (#0) / 0`, during run expr: `(((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((t.a (#0) > 0 OR t.a (#0) > 1) OR t.a (#0) > 2) OR t.a (#0) > 3) OR t.a (#0) > 4) OR t.a (#0) > 5) OR t.a (#0) > 6) OR t.a (#0) > 7) OR t.a (#0) > 8) OR t.a (#0) > 9) OR t.a (#0) > 10) OR t.a (#0) > 11) OR t.a (#0) > 12) OR t.a (#0) > 13) OR t.a (#0) > 14) OR t.a (#0) > 15) OR t.a (#0) > 16) OR t.a (#0) > 17) OR t.a (#0) > 18) OR t.a (#0) > 19) OR t.a (#0) > 20) OR t.a (#0) > 21) OR t.a (#0) > 22) OR t.a (#0) > 23) OR t.a (#0) > 24) OR t.a (#0) > 25) OR t.a (#0) > 26) OR t.a (#0) > 27) OR t.a (#0) > 28) OR t.a (#0) > 29) OR t.a (#0) > 30) OR t.a (#0) > 31) OR t.a (#0) > 32) OR t.a (#0) > 33) OR t.a (#0) > 34) OR t.a (#0) > 35) OR t.a (#0) > 36) OR t.a (#0) > 37) OR t.a (#0) > 38) OR t.a (#0) > 39) OR t.a (#0) > 40) OR t.a (#0) > 41) OR t.a (#0) > 42) OR t.a (#0) > 43) OR t.a (#0) > 44) OR t.a (#0) > 45) OR t.a (#0) > 46) OR t.a (#0) > 47) OR t.a (#0) > 48) OR t.a (#0) > 49) OR t.a (#0) > 50) OR t.a (#0) > 51) OR t.a (#0) > 52) OR t.a (#0) > 53) OR t.a (#0) > 54) OR t.a (#0) > 55) OR t.a (#0) > 56) OR t.a (#0) > 57) OR t.a (#0) > 58) OR t.a (#0) > 59) OR t.a (#0) > 60) OR t.a (#0) > 61) OR t.a (#0) > 62) OR t.a (#0) > 63) OR t.a (#0) > 64) OR t.a (#0) > 65) OR t.a (#0) > 66) OR t.a (#0) > 67) OR t.a (#0) > 68) OR t.a (#0) > 69) OR t.a (#0) > 70) OR t.a (#0) > 71) OR t.a (#0) > 72) OR t.a (#0) > 73) OR t.a (#0) > 74) OR t.a (#0) > 75) OR t.a (#0) > 76) OR t.a (#0) > 77) OR t.a (#0) > 78) OR t.a (#0) > 79) OR t.a (#0) > 80) OR t.a (#0) > 81) OR t.a (#0) > 82) OR t.a (#0) > 83) OR t.a (#0) > 84) OR t.a (#0) > 85) OR t.a (#0) > 86) OR t.a (#0) > 87) OR t.a (#0) > 88) OR t.a (#0) > 89) OR t.a (#0) > 90) OR t.a (#0) > 91) OR t.a (#0) > 92) OR t.a (#0) > 93) OR t.a (#0) > 94) OR t.a (#0) > 95) OR t.a (#0) > 96) OR t.a (#0) > 97) OR t.a (#0) > 98) OR t.a (#0) > 99) OR t.a (#0) > 100) OR t.a (#0) / 0 > 0)` +Error: APIError: ResponseError with 1006: divided by zero while evaluating function `divide(0, 0)` in expr `t.a (#0) / 0`, during run expr: `t.a (#0) > 0 OR t.a (#0) > 1 OR t.a (#0) > 2 OR t.a (#0) > 3 OR t.a (#0) > 4 OR t.a (#0) > 5 OR t.a (#0) > 6 OR t.a (#0) > 7 OR t.a (#0) > 8 OR t.a (#0) > 9 OR t.a (#0) > 10 OR t.a (#0) > 11 OR t.a (#0) > 12 OR t.a (#0) > 13 OR t.a (#0) > 14 OR t.a (#0) > 15 OR t.a (#0) > 16 OR t.a (#0) > 17 OR t.a (#0) > 18 OR t.a (#0) > 19 OR t.a (#0) > 20 OR t.a (#0) > 21 OR t.a (#0) > 22 OR t.a (#0) > 23 OR t.a (#0) > 24 OR t.a (#0) > 25 OR t.a (#0) > 26 OR t.a (#0) > 27 OR t.a (#0) > 28 OR t.a (#0) > 29 OR t.a (#0) > 30 OR t.a (#0) > 31 OR t.a (#0) > 32 OR t.a (#0) > 33 OR t.a (#0) > 34 OR t.a (#0) > 35 OR t.a (#0) > 36 OR t.a (#0) > 37 OR t.a (#0) > 38 OR t.a (#0) > 39 OR t.a (#0) > 40 OR t.a (#0) > 41 OR t.a (#0) > 42 OR t.a (#0) > 43 OR t.a (#0) > 44 OR t.a (#0) > 45 OR t.a (#0) > 46 OR t.a (#0) > 47 OR t.a (#0) > 48 OR t.a (#0) > 49 OR t.a (#0) > 50 OR t.a (#0) > 51 OR t.a (#0) > 52 OR t.a (#0) > 53 OR t.a (#0) > 54 OR t.a (#0) > 55 OR t.a (#0) > 56 OR t.a (#0) > 57 OR t.a (#0) > 58 OR t.a (#0) > 59 OR t.a (#0) > 60 OR t.a (#0) > 61 OR t.a (#0) > 62 OR t.a (#0) > 63 OR t.a (#0) > 64 OR t.a (#0) > 65 OR t.a (#0) > 66 OR t.a (#0) > 67 OR t.a (#0) > 68 OR t.a (#0) > 69 OR t.a (#0) > 70 OR t.a (#0) > 71 OR t.a (#0) > 72 OR t.a (#0) > 73 OR t.a (#0) > 74 OR t.a (#0) > 75 OR t.a (#0) > 76 OR t.a (#0) > 77 OR t.a (#0) > 78 OR t.a (#0) > 79 OR t.a (#0) > 80 OR t.a (#0) > 81 OR t.a (#0) > 82 OR t.a (#0) > 83 OR t.a (#0) > 84 OR t.a (#0) > 85 OR t.a (#0) > 86 OR t.a (#0) > 87 OR t.a (#0) > 88 OR t.a (#0) > 89 OR t.a (#0) > 90 OR t.a (#0) > 91 OR t.a (#0) > 92 OR t.a (#0) > 93 OR t.a (#0) > 94 OR t.a (#0) > 95 OR t.a (#0) > 96 OR t.a (#0) > 97 OR t.a (#0) > 98 OR t.a (#0) > 99 OR t.a (#0) > 100 OR t.a (#0) / 0 > 0` diff --git a/tests/suites/0_stateless/20+_others/20_0019_set_cache_capacity_privilege_check.result b/tests/suites/0_stateless/20+_others/20_0019_set_cache_capacity_privilege_check.result index c5239f03fe4a..7683e4ac48d4 100644 --- a/tests/suites/0_stateless/20+_others/20_0019_set_cache_capacity_privilege_check.result +++ b/tests/suites/0_stateless/20+_others/20_0019_set_cache_capacity_privilege_check.result @@ -1,2 +1,2 @@ -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Super] is required to invoke table function [fuse_amend] for user 'test'@'%' with roles [public] -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Super] is required to invoke table function [fuse_amend] for user 'test'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Super] is required to invoke table function [fuse_amend] for user 'test'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Super] is required to invoke table function [fuse_amend] for user 'test'@'%' with roles [public] diff --git a/tests/suites/1_stateful/00_stage/00_0004_copy_with_max_files.result b/tests/suites/1_stateful/00_stage/00_0004_copy_with_max_files.result index 6631407b0caa..d83f770560d9 100644 --- a/tests/suites/1_stateful/00_stage/00_0004_copy_with_max_files.result +++ b/tests/suites/1_stateful/00_stage/00_0004_copy_with_max_files.result @@ -33,10 +33,10 @@ copied 0 files with 6 rows, remain 0 files >>>> drop table if exists test_max_files_limit >>>> create table test_max_files_limit (a int, b int) >>>> copy into test_max_files_limit from 'fs:///tmp/00_0004_2/' FILE_FORMAT = (type = CSV) -Error: APIError: QueryFailed: [1001]Commit limit reached: 15,000 files for 'copy into table'. To handle more files, adjust 'CopyOption' with 'max_files='(e.g., 'max_files=10000') and perform several operations until all files are processed. +Error: APIError: ResponseError with 1001: Commit limit reached: 15,000 files for 'copy into table'. To handle more files, adjust 'CopyOption' with 'max_files='(e.g., 'max_files=10000') and perform several operations until all files are processed. <<<< >>>> copy into test_max_files_limit from 'fs:///tmp/00_0004_2/' FILE_FORMAT = (type = CSV) force=true -Error: APIError: QueryFailed: [1001]Commit limit reached: 15,000 files for 'copy into table'. To handle more files, adjust 'CopyOption' with 'max_files='(e.g., 'max_files=10000') and perform several operations until all files are processed. +Error: APIError: ResponseError with 1001: Commit limit reached: 15,000 files for 'copy into table'. To handle more files, adjust 'CopyOption' with 'max_files='(e.g., 'max_files=10000') and perform several operations until all files are processed. <<<< >>>> copy into test_max_files_limit from 'fs:///tmp/00_0004_2/' FILE_FORMAT = (type = CSV) force=true purge=true return_failed_only=true <<<< diff --git a/tests/suites/1_stateful/00_stage/00_0011_distributed_copy_into_table.result b/tests/suites/1_stateful/00_stage/00_0011_distributed_copy_into_table.result index e73d70c3d2ae..779b3e5ab7c4 100644 --- a/tests/suites/1_stateful/00_stage/00_0011_distributed_copy_into_table.result +++ b/tests/suites/1_stateful/00_stage/00_0011_distributed_copy_into_table.result @@ -32,7 +32,7 @@ sample_3_replace.csv 5 0 NULL NULL 105 hammer 14oz carpenter's hammer 24 null -Error: APIError: QueryFailed: [1046]Number of columns in file (2) does not match that of the corresponding table (3) +Error: APIError: ResponseError with 1046: Number of columns in file (2) does not match that of the corresponding table (3) at file 'sample_2_columns.csv', line 0 24 5 diff --git a/tests/suites/1_stateful/00_stage/00_0012_stage_priv.result b/tests/suites/1_stateful/00_stage/00_0012_stage_priv.result index 87d27703b77f..23ea32511875 100644 --- a/tests/suites/1_stateful/00_stage/00_0012_stage_priv.result +++ b/tests/suites/1_stateful/00_stage/00_0012_stage_priv.result @@ -1,27 +1,27 @@ ==== check internal stage write priv === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Write] is required on STAGE s2 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Select] is required on 'default'.'default'.'test_table' for user 'u1'@'%' with roles [public] +Error: APIError: ResponseError with 1063: Permission denied: privilege [Write] is required on STAGE s2 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Select] is required on 'default'.'default'.'test_table' for user 'u1'@'%' with roles [public] 20 160 160 1 ==== check external stage priv === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Write] is required on STAGE s1 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Write] is required on STAGE s1 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 20 160 160 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE s1 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s1 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. csv/data_UUID_0000_00000000.csv 20 0 NULL NULL ==== check internal stage read priv === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE s2 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s2 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. data_UUID_0000_00000000.csv 20 0 NULL NULL === check presign === -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Write] is required on STAGE presign_stage for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Write] is required on STAGE presign_stage for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 000 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE presign_stage for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE presign_stage for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. 000 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Write] is required on STAGE s3 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -1 1 356 -Error: APIError: QueryFailed: [1063]Permission denied: privilege [Read] is required on STAGE s3 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. -Error: APIError: QueryFailed: [1063]Permission denied: privilege READ is required on stage s3 for user 'u1'@'%' -Error: APIError: QueryFailed: [1063]Permission denied: privilege READ is required on stage s3 for user 'u1'@'%' -Error: APIError: QueryFailed: [1063]Permission denied: privilege READ is required on stage s3 for user 'u1'@'%' +Error: APIError: ResponseError with 1063: Permission denied: privilege [Write] is required on STAGE s3 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +1 1 377 +Error: APIError: ResponseError with 1063: Permission denied: privilege [Read] is required on STAGE s3 for user 'u1'@'%' with roles [public]. Note: Please ensure that your current role have the appropriate permissions to create a new Database|Table|UDF|Stage. +Error: APIError: ResponseError with 1063: Permission denied: privilege READ is required on stage s3 for user 'u1'@'%' +Error: APIError: ResponseError with 1063: Permission denied: privilege READ is required on stage s3 for user 'u1'@'%' +Error: APIError: ResponseError with 1063: Permission denied: privilege READ is required on stage s3 for user 'u1'@'%' 2 1 1 diff --git a/tests/suites/1_stateful/00_stage/00_0013_connection_errors.result b/tests/suites/1_stateful/00_stage/00_0013_connection_errors.result index beb95195ddab..9ee2c5924114 100755 --- a/tests/suites/1_stateful/00_stage/00_0013_connection_errors.result +++ b/tests/suites/1_stateful/00_stage/00_0013_connection_errors.result @@ -1,21 +1,21 @@ >>>> drop stage if exists my_stage; >>>> drop connection if exists my_conn; >>>> create connection my_conn storage_type = 's4'; -Error: APIError: QueryFailed: [4000]invalid input parameter (protocol s4 is not supported yet.) +Error: APIError: ResponseError with 4000: invalid input parameter (protocol s4 is not supported yet.) <<<< >>>> create connection my_conn storage_type = 's4' connection_name='my_conn' -Error: APIError: QueryFailed: [4000]invalid input parameter (protocol s4 is not supported yet.) +Error: APIError: ResponseError with 4000: invalid input parameter (protocol s4 is not supported yet.) <<<< >>>> create connection my_conn storage_type = 's3' connection_name='my_conn' -Error: APIError: QueryFailed: [4000]invalid input parameter (can not use connection_name when create connection) +Error: APIError: ResponseError with 4000: invalid input parameter (can not use connection_name when create connection) <<<< >>>> create connection my_conn storage_type = 's4' access_key_id ='minioadmin' secret_access_key ='minioadmin' endpoint_url='http://127.0.0.1:9900' -Error: APIError: QueryFailed: [4000]invalid input parameter (protocol s4 is not supported yet.) +Error: APIError: ResponseError with 4000: invalid input parameter (protocol s4 is not supported yet.) <<<< >>>> create connection my_conn storage_type = 's3' access_key_id ='minioadmin' secret_access_key ='minioadmin' endpoint_url='http://127.0.0.1:9900' >>>> create stage my_stage url= 's3://testbucket/admin/tempdata/' connection = (connection_name='my_conn', endpoint_url='xx'); -Error: APIError: QueryFailed: [4000]invalid input parameter (connection_name can not be used with other connection options) +Error: APIError: ResponseError with 4000: invalid input parameter (connection_name can not be used with other connection options) <<<< >>>> create stage my_stage url= 'http://testbucket/admin/tempdata/' connection = (connection_name='my_conn'); -Error: APIError: QueryFailed: [4000]invalid input parameter (protocol from connection_name=my_conn (s3) not match with uri protocol (http).) +Error: APIError: ResponseError with 4000: invalid input parameter (protocol from connection_name=my_conn (s3) not match with uri protocol (http).) <<<< diff --git a/tests/suites/1_stateful/02_query/02_0003_create_table_with_block_per_segment.result b/tests/suites/1_stateful/02_query/02_0003_create_table_with_block_per_segment.result index 7c7b679c621f..0a05eb409a9e 100644 --- a/tests/suites/1_stateful/02_query/02_0003_create_table_with_block_per_segment.result +++ b/tests/suites/1_stateful/02_query/02_0003_create_table_with_block_per_segment.result @@ -1 +1 @@ -Error: APIError: QueryFailed: [1301]invalid block_per_segment option, can't be over 1000 +Error: APIError: ResponseError with 1301: invalid block_per_segment option, can't be over 1000 diff --git a/tests/suites/1_stateful/09_http_handler/09_0000_invalid_utf8.result b/tests/suites/1_stateful/09_http_handler/09_0000_invalid_utf8.result index 5b9a5f340fe1..856973bcbf2a 100644 --- a/tests/suites/1_stateful/09_http_handler/09_0000_invalid_utf8.result +++ b/tests/suites/1_stateful/09_http_handler/09_0000_invalid_utf8.result @@ -1,2 +1,2 @@ -Error: APIError: QueryFailed: [1006]invalid utf8 sequence while evaluating function `to_string(D00C)` in expr `to_string()`, during run expr: `CAST(from_hex('D00C')::string AS String NULL)` +Error: APIError: ResponseError with 1006: invalid utf8 sequence while evaluating function `to_string(D00C)` in expr `to_string()`, during run expr: `CAST(from_hex('D00C')::string AS String NULL)` null diff --git a/tests/suites/1_stateful/09_http_handler/09_0001_json_response.result b/tests/suites/1_stateful/09_http_handler/09_0001_json_response.result index 2c73132df582..d7cb376029cd 100755 --- a/tests/suites/1_stateful/09_http_handler/09_0001_json_response.result +++ b/tests/suites/1_stateful/09_http_handler/09_0001_json_response.result @@ -1,4 +1,3 @@ -"Failed" -{"code":1065,"message":"error: \n --> SQL:1:8\n |\n1 | select a\n | ^ column a doesn't exist\n\n"} +{"code":1025,"message":"error: \n --> SQL:1:15\n |\n1 | select * from t1\n | ^^ Unknown table \"default\".\"default\".t1 .\n\n"} {"error":{"code":400,"message":"parse error: key must be a string at line 1 column 2"}} {"error":{"code":404,"message":"not found"}} diff --git a/tests/suites/1_stateful/09_http_handler/09_0001_json_response.sh b/tests/suites/1_stateful/09_http_handler/09_0001_json_response.sh index ec36c039ca7e..0bb648ddc668 100755 --- a/tests/suites/1_stateful/09_http_handler/09_0001_json_response.sh +++ b/tests/suites/1_stateful/09_http_handler/09_0001_json_response.sh @@ -3,7 +3,9 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) . "$CURDIR"/../../../shell_env.sh -curl -s --header 'Content-Type: application/json' --request POST '127.0.0.1:8000/v1/query/' --data-raw '{"sql": "select a", "pagination": { "wait_time_secs": 5}}' -u root: | jq -c ".state",".error" +echo "drop table if exists t1;" | $BENDSQL_CLIENT_CONNECT + +curl -s --header 'Content-Type: application/json' --request POST '127.0.0.1:8000/v1/query/' --data-raw '{"sql": "select * from t1", "pagination": { "wait_time_secs": 2}}' -u root: | jq -c ".error" curl -s --header 'Content-Type: application/json' --request POST '127.0.0.1:8000/v1/query/' --data-raw '{sql": "select * from tx", "pagination": { "wait_time_secs": 2}}' -u root: echo "" diff --git a/tests/suites/5_ee/04_attach_read_only/02_0004_attach_table.result b/tests/suites/5_ee/04_attach_read_only/02_0004_attach_table.result index 874cc27767ea..f22487d3b50e 100644 --- a/tests/suites/5_ee/04_attach_read_only/02_0004_attach_table.result +++ b/tests/suites/5_ee/04_attach_read_only/02_0004_attach_table.result @@ -27,7 +27,7 @@ ATTACH <<<< #### delete should fail >>>> delete from table_to where a=1; -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'table_to' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'table_to' is READ ONLY, preventing any changes or updates. <<<< #### select after deletion >>>> select * from table_to order by a; diff --git a/tests/suites/5_ee/04_attach_read_only/02_0005_attach_table_read_only.result b/tests/suites/5_ee/04_attach_read_only/02_0005_attach_table_read_only.result index e138dfe6aa6d..32f397509ebd 100755 --- a/tests/suites/5_ee/04_attach_read_only/02_0005_attach_table_read_only.result +++ b/tests/suites/5_ee/04_attach_read_only/02_0005_attach_table_read_only.result @@ -30,30 +30,30 @@ c2 VARCHAR NO 'c2' expects one row, 2 columns 0 c2 delete not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. update not allowed -Error: APIError: QueryFailed: [1006]Unable to get field named "a". Valid fields: ["number", "c2"] +Error: APIError: ResponseError with 1006: Unable to get field named "a". Valid fields: ["number", "c2"] truncate not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. alter table column not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. alter table set options not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. alter table flashback not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. alter table recluster not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. analyze table not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. optimize table optimize table compact not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. optimize table compact segment not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. optimize table purge not allowed -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. drop table ALL not allowed -Error: APIError: QueryFailed: [3905] drop table ALL is not allowed for read only table, please consider remove the option ALL +Error: APIError: ResponseError with 3905: drop table ALL is not allowed for read only table, please consider remove the option ALL Modification not permitted: Table 'attach_read_only' is READ ONLY, preventing any changes or updates. drop table IS allowed undrop table should work diff --git a/tests/suites/5_ee/04_attach_read_only/04_0001_check_mutations.result b/tests/suites/5_ee/04_attach_read_only/04_0001_check_mutations.result index e516d442a2e5..665eaeecf843 100755 --- a/tests/suites/5_ee/04_attach_read_only/04_0001_check_mutations.result +++ b/tests/suites/5_ee/04_attach_read_only/04_0001_check_mutations.result @@ -1,16 +1,16 @@ create index should fail -Error: APIError: QueryFailed: [1601]Table test_json_read_only is read-only, creating inverted index not allowed +Error: APIError: ResponseError with 1601: Table test_json_read_only is read-only, creating inverted index not allowed create virtual column should fail -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. alter virtual column should fail -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. drop virtual column should fail -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. refresh virtual column should fail -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. vacuum table vacuum table should fail -Error: APIError: QueryFailed: [3905]Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. +Error: APIError: ResponseError with 3905: Modification not permitted: Table 'test_json_read_only' is READ ONLY, preventing any changes or updates. vacuum drop table from db should not include the read_only attach table expect table data still there 1 {"a":33,"b":44} diff --git a/tests/suites/5_ee/05_stream/05_0002_ee_stream_create.result b/tests/suites/5_ee/05_stream/05_0002_ee_stream_create.result index 0f45b47a0809..567c5ac482ed 100644 --- a/tests/suites/5_ee/05_stream/05_0002_ee_stream_create.result +++ b/tests/suites/5_ee/05_stream/05_0002_ee_stream_create.result @@ -1,11 +1,11 @@ -Error: APIError: QueryFailed: [2733]Change tracking has been missing for the time range requested on table 'db_stream'.'base' +Error: APIError: ResponseError with 2733: Change tracking has been missing for the time range requested on table 'db_stream'.'base' 3 INSERT false true 1 2 -Error: APIError: QueryFailed: [2733]Change tracking has been missing for the time range requested on table 'db_stream'.'base' +Error: APIError: ResponseError with 2733: Change tracking has been missing for the time range requested on table 'db_stream'.'base' 3 INSERT false true -Error: APIError: QueryFailed: [2733]Change tracking has been missing for the time range requested on table 'db_stream'.'base' -Error: APIError: QueryFailed: [2733]Change tracking has been missing for the time range requested on table 'db_stream'.'base' -Error: APIError: QueryFailed: [2733]Change tracking has been missing for the time range requested on table 'db_stream'.'base' +Error: APIError: ResponseError with 2733: Change tracking has been missing for the time range requested on table 'db_stream'.'base' +Error: APIError: ResponseError with 2733: Change tracking has been missing for the time range requested on table 'db_stream'.'base' +Error: APIError: ResponseError with 2733: Change tracking has been missing for the time range requested on table 'db_stream'.'base' 3 2