From 52ac093110dabe5d6a9e29ca7631f4d89fb7443e Mon Sep 17 00:00:00 2001 From: JeremyHi Date: Thu, 28 Sep 2023 14:21:18 +0800 Subject: [PATCH] fix: drop table 0 rows affected (#2515) --- src/operator/src/statement/ddl.rs | 7 +++---- tests-integration/src/grpc.rs | 2 +- tests-integration/src/instance.rs | 2 +- .../distributed/explain/join_10_tables.result | 20 +++++++++---------- .../explain/multi_partitions.result | 2 +- .../cases/distributed/explain/order_by.result | 4 ++-- .../explain/single_partition.result | 2 +- .../distributed/explain/subqueries.result | 4 ++-- .../optimizer/filter_push_down.result | 2 +- .../cases/distributed/show/show_create.result | 4 ++-- .../tql-explain-analyze/analyze.result | 2 +- .../tql-explain-analyze/explain.result | 4 ++-- .../common/aggregate/distinct.result | 2 +- .../common/aggregate/distinct_order_by.result | 2 +- .../standalone/common/aggregate/sum.result | 4 ++-- .../standalone/common/alter/add_col.result | 2 +- .../common/alter/add_col_chain.result | 2 +- .../common/alter/add_col_default.result | 2 +- .../common/alter/add_incorrect_col.result | 2 +- .../common/alter/alter_table.result | 2 +- .../alter/alter_table_first_after.result | 2 +- .../standalone/common/alter/drop_col.result | 2 +- .../common/alter/drop_col_not_null.result | 2 +- .../alter/drop_col_not_null_next.result | 2 +- .../common/alter/rename_table.result | 4 ++-- tests/cases/standalone/common/basic.result | 4 ++-- .../standalone/common/catalog/schema.result | 4 ++-- .../common/copy/copy_from_fs_csv.result | 8 ++++---- .../common/copy/copy_from_fs_json.result | 8 ++++---- .../common/copy/copy_from_fs_parquet.result | 8 ++++---- .../standalone/common/copy/copy_to_fs.result | 2 +- .../standalone/common/create/create.result | 10 +++++----- .../common/create/create_type_alias.result | 2 +- .../create/upper_case_table_name.result | 2 +- tests/cases/standalone/common/cte/cte.result | 2 +- .../standalone/common/cte/cte_in_cte.result | 2 +- .../standalone/common/delete/delete.result | 2 +- .../common/describe/describe_table.result | 2 +- .../common/insert/big_insert.result | 4 ++-- .../standalone/common/insert/insert.result | 4 ++-- .../common/insert/insert_default.result | 4 ++-- .../common/insert/insert_invalid.result | 4 ++-- .../common/insert/insert_select.result | 4 ++-- .../common/insert/special_value.result | 2 +- .../standalone/common/order/limit.result | 6 +++--- .../common/order/limit_union.result | 2 +- .../common/order/nulls_first.result | 2 +- .../standalone/common/order/order_by.result | 2 +- .../common/order/order_by_exceptions.result | 2 +- .../order/order_variable_size_payload.result | 20 +++++++++---------- .../standalone/common/select/dummy.result | 2 +- .../standalone/common/select/like.result | 2 +- .../common/select/range_select.result | 4 ++-- .../common/timestamp/timestamp.result | 2 +- .../common/tql/aggr_over_time.result | 8 ++++---- .../cases/standalone/common/tql/basic.result | 2 +- .../common/tql/binary_operator.result | 4 ++-- tests/cases/standalone/common/tql/join.result | 4 ++-- .../standalone/common/tql/operator.result | 6 +++--- .../common/truncate/truncate.result | 2 +- .../standalone/common/types/blob/blob.result | 4 ++-- .../common/types/float/infinity.result | 4 ++-- .../standalone/common/types/float/nan.result | 4 ++-- .../common/types/float/nan_aggregate.result | 6 +++--- .../common/types/float/nan_aggregates.result | 4 ++-- .../common/types/float/nan_join.result | 4 ++-- .../common/types/float/nan_ordering.result | 4 ++-- .../common/types/float/nan_window.result | 4 ++-- .../common/types/interval/interval.result | 2 +- .../common/types/string/bigstring.result | 2 +- .../types/string/scan_big_varchar.result | 4 ++-- .../common/types/string/unicode.result | 2 +- .../timestamp/incorrect_timestamp.result | 2 +- .../common/types/timestamp/timestamp.result | 2 +- .../types/timestamp/timestamp_join.result | 4 ++-- .../timestamp/timestamp_precision.result | 2 +- .../types/timestamp/timestamp_types.result | 4 ++-- .../standalone/create/recover_created.result | 6 +++--- .../optimizer/filter_push_down.result | 2 +- .../cases/standalone/show/show_create.result | 2 +- .../tql-explain-analyze/analyze.result | 2 +- .../tql-explain-analyze/explain.result | 2 +- 82 files changed, 152 insertions(+), 153 deletions(-) diff --git a/src/operator/src/statement/ddl.rs b/src/operator/src/statement/ddl.rs index 2173e030c7..5d6a984eb2 100644 --- a/src/operator/src/statement/ddl.rs +++ b/src/operator/src/statement/ddl.rs @@ -153,7 +153,7 @@ impl StatementExecutor { .await .context(error::InvalidateTableCacheSnafu)?; - Ok(Output::AffectedRows(1)) + Ok(Output::AffectedRows(0)) } pub async fn truncate_table(&self, table_name: TableName) -> Result { @@ -181,9 +181,8 @@ impl StatementExecutor { table_info: Arc, expr: AlterExpr, ) -> Result<()> { - let request: table::requests::AlterTableRequest = - common_grpc_expr::alter_expr_to_request(table_id, expr) - .context(AlterExprToRequestSnafu)?; + let request: AlterTableRequest = common_grpc_expr::alter_expr_to_request(table_id, expr) + .context(AlterExprToRequestSnafu)?; let AlterTableRequest { table_name, .. } = &request; diff --git a/tests-integration/src/grpc.rs b/tests-integration/src/grpc.rs index 1216d61e00..90ef779d98 100644 --- a/tests-integration/src/grpc.rs +++ b/tests-integration/src/grpc.rs @@ -167,7 +167,7 @@ mod test { })), }); let output = query(instance, request).await; - assert!(matches!(output, Output::AffectedRows(1))); + assert!(matches!(output, Output::AffectedRows(0))); } async fn verify_table_is_dropped(instance: &MockDistributedInstance) { diff --git a/tests-integration/src/instance.rs b/tests-integration/src/instance.rs index 7707df8d4b..473f919e94 100644 --- a/tests-integration/src/instance.rs +++ b/tests-integration/src/instance.rs @@ -259,7 +259,7 @@ mod tests { let Output::AffectedRows(x) = output else { unreachable!() }; - assert_eq!(x, 1); + assert_eq!(x, 0); } async fn verify_table_is_dropped(instance: &MockDistributedInstance) { diff --git a/tests/cases/distributed/explain/join_10_tables.result b/tests/cases/distributed/explain/join_10_tables.result index a354a2cc67..74f06c246b 100644 --- a/tests/cases/distributed/explain/join_10_tables.result +++ b/tests/cases/distributed/explain/join_10_tables.result @@ -166,41 +166,41 @@ limit 1; drop table t_1; -Affected Rows: 1 +Affected Rows: 0 drop table t_2; -Affected Rows: 1 +Affected Rows: 0 drop table t_3; -Affected Rows: 1 +Affected Rows: 0 drop table t_4; -Affected Rows: 1 +Affected Rows: 0 drop table t_5; -Affected Rows: 1 +Affected Rows: 0 drop table t_6; -Affected Rows: 1 +Affected Rows: 0 drop table t_7; -Affected Rows: 1 +Affected Rows: 0 drop table t_8; -Affected Rows: 1 +Affected Rows: 0 drop table t_9; -Affected Rows: 1 +Affected Rows: 0 drop table t_10; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/explain/multi_partitions.result b/tests/cases/distributed/explain/multi_partitions.result index 3eb7b5491b..d54f2c4dc6 100644 --- a/tests/cases/distributed/explain/multi_partitions.result +++ b/tests/cases/distributed/explain/multi_partitions.result @@ -34,5 +34,5 @@ explain SELECT * FROM demo WHERE ts > cast(1000000000 as timestamp) ORDER BY hos drop table demo; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/explain/order_by.result b/tests/cases/distributed/explain/order_by.result index 0501a35da0..e4ff2d139b 100644 --- a/tests/cases/distributed/explain/order_by.result +++ b/tests/cases/distributed/explain/order_by.result @@ -28,7 +28,7 @@ EXPLAIN SELECT DISTINCT i%2 FROM integers ORDER BY 1; DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE test (a INTEGER, b INTEGER, t TIMESTAMP TIME INDEX); @@ -77,5 +77,5 @@ EXPLAIN SELECT DISTINCT a, b FROM test ORDER BY a, b; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/explain/single_partition.result b/tests/cases/distributed/explain/single_partition.result index 581e62b4da..f6b670fbce 100644 --- a/tests/cases/distributed/explain/single_partition.result +++ b/tests/cases/distributed/explain/single_partition.result @@ -65,5 +65,5 @@ EXPLAIN SELECT * FROM single_partition ORDER BY i DESC; drop table single_partition; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/explain/subqueries.result b/tests/cases/distributed/explain/subqueries.result index ba5c162e26..e1a95fa3a5 100644 --- a/tests/cases/distributed/explain/subqueries.result +++ b/tests/cases/distributed/explain/subqueries.result @@ -123,9 +123,9 @@ EXPLAIN INSERT INTO other SELECT i, 2 FROM integers WHERE i=(SELECT MAX(i) FROM drop table other; -Affected Rows: 1 +Affected Rows: 0 drop table integers; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/optimizer/filter_push_down.result b/tests/cases/distributed/optimizer/filter_push_down.result index 142a9eb557..e6954bc848 100644 --- a/tests/cases/distributed/optimizer/filter_push_down.result +++ b/tests/cases/distributed/optimizer/filter_push_down.result @@ -245,5 +245,5 @@ Error: 3001(EngineExecuteQuery), Error during planning: Attempted to create Filt DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/show/show_create.result b/tests/cases/distributed/show/show_create.result index 86e3687ed5..b871117b1a 100644 --- a/tests/cases/distributed/show/show_create.result +++ b/tests/cases/distributed/show/show_create.result @@ -49,7 +49,7 @@ SHOW CREATE TABLE system_metrics; DROP TABLE system_metrics; -Affected Rows: 1 +Affected Rows: 0 create table table_without_partition ( ts TIMESTAMP TIME INDEX NOT NULL DEFAULT current_timestamp() @@ -75,7 +75,7 @@ show create table table_without_partition; drop table table_without_partition; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE not_supported_table_options_keys ( id INT UNSIGNED, diff --git a/tests/cases/distributed/tql-explain-analyze/analyze.result b/tests/cases/distributed/tql-explain-analyze/analyze.result index 32bb5223d6..701cec66ad 100644 --- a/tests/cases/distributed/tql-explain-analyze/analyze.result +++ b/tests/cases/distributed/tql-explain-analyze/analyze.result @@ -29,5 +29,5 @@ TQL ANALYZE (0, 10, '5s') test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/distributed/tql-explain-analyze/explain.result b/tests/cases/distributed/tql-explain-analyze/explain.result index c6ee88bdf6..b05436a5b9 100644 --- a/tests/cases/distributed/tql-explain-analyze/explain.result +++ b/tests/cases/distributed/tql-explain-analyze/explain.result @@ -30,7 +30,7 @@ TQL EXPLAIN (0, 10, '5s') test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE host_load1 ( ts TIMESTAMP(3) NOT NULL, @@ -65,5 +65,5 @@ TQL EXPLAIN host_load1{__field__="val"}; DROP TABLE host_load1; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/aggregate/distinct.result b/tests/cases/standalone/common/aggregate/distinct.result index ef01ecc1ea..fea497c70a 100644 --- a/tests/cases/standalone/common/aggregate/distinct.result +++ b/tests/cases/standalone/common/aggregate/distinct.result @@ -71,5 +71,5 @@ SELECT DISTINCT CASE WHEN a > 11 THEN 11 ELSE a END FROM test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/aggregate/distinct_order_by.result b/tests/cases/standalone/common/aggregate/distinct_order_by.result index f4d84302d5..a3fc6a8698 100644 --- a/tests/cases/standalone/common/aggregate/distinct_order_by.result +++ b/tests/cases/standalone/common/aggregate/distinct_order_by.result @@ -63,5 +63,5 @@ SELECT DISTINCT integers.i FROM integers ORDER BY integers.i DESC; DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/aggregate/sum.result b/tests/cases/standalone/common/aggregate/sum.result index 7eaeb83946..526fce1757 100644 --- a/tests/cases/standalone/common/aggregate/sum.result +++ b/tests/cases/standalone/common/aggregate/sum.result @@ -72,9 +72,9 @@ SELECT sum(n) from doubles; DROP TABLE bigints; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/add_col.result b/tests/cases/standalone/common/alter/add_col.result index 3986ac48ca..7b3c6d4fb4 100644 --- a/tests/cases/standalone/common/alter/add_col.result +++ b/tests/cases/standalone/common/alter/add_col.result @@ -89,5 +89,5 @@ DESC TABLE test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/add_col_chain.result b/tests/cases/standalone/common/alter/add_col_chain.result index 1f8f7229e4..759525dcdb 100644 --- a/tests/cases/standalone/common/alter/add_col_chain.result +++ b/tests/cases/standalone/common/alter/add_col_chain.result @@ -34,5 +34,5 @@ SELECT * FROM test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/add_col_default.result b/tests/cases/standalone/common/alter/add_col_default.result index 1526246756..6d8c523ba3 100644 --- a/tests/cases/standalone/common/alter/add_col_default.result +++ b/tests/cases/standalone/common/alter/add_col_default.result @@ -21,5 +21,5 @@ SELECT * FROM test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/add_incorrect_col.result b/tests/cases/standalone/common/alter/add_incorrect_col.result index 1f8d90b575..f914da07a9 100644 --- a/tests/cases/standalone/common/alter/add_incorrect_col.result +++ b/tests/cases/standalone/common/alter/add_incorrect_col.result @@ -21,5 +21,5 @@ SELECT * FROM table_should_not_break_after_incorrect_alter; DROP TABLE table_should_not_break_after_incorrect_alter; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/alter_table.result b/tests/cases/standalone/common/alter/alter_table.result index a5edc82215..74e5c2399e 100644 --- a/tests/cases/standalone/common/alter/alter_table.result +++ b/tests/cases/standalone/common/alter/alter_table.result @@ -43,5 +43,5 @@ DESC TABLE test_alt_table; DROP TABLE test_alt_table; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/alter_table_first_after.result b/tests/cases/standalone/common/alter/alter_table_first_after.result index ee03030078..ba7e0ade6c 100644 --- a/tests/cases/standalone/common/alter/alter_table_first_after.result +++ b/tests/cases/standalone/common/alter/alter_table_first_after.result @@ -170,5 +170,5 @@ Error: 1001(Unsupported), SQL statement is not supported: ALTER TABLE t ADD COLU DROP TABLE t; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/drop_col.result b/tests/cases/standalone/common/alter/drop_col.result index 95125ef4e3..cf0c7251ef 100644 --- a/tests/cases/standalone/common/alter/drop_col.result +++ b/tests/cases/standalone/common/alter/drop_col.result @@ -25,5 +25,5 @@ Error: 1004(InvalidArguments), Not allowed to remove index column j from table t DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/drop_col_not_null.result b/tests/cases/standalone/common/alter/drop_col_not_null.result index 863f53136b..86a6f3150e 100644 --- a/tests/cases/standalone/common/alter/drop_col_not_null.result +++ b/tests/cases/standalone/common/alter/drop_col_not_null.result @@ -35,5 +35,5 @@ SELECT * FROM test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/drop_col_not_null_next.result b/tests/cases/standalone/common/alter/drop_col_not_null_next.result index 257f727bfd..049aa8d0df 100644 --- a/tests/cases/standalone/common/alter/drop_col_not_null_next.result +++ b/tests/cases/standalone/common/alter/drop_col_not_null_next.result @@ -40,5 +40,5 @@ SELECT * FROM test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/alter/rename_table.result b/tests/cases/standalone/common/alter/rename_table.result index 5d7f6a701f..19015c91b2 100644 --- a/tests/cases/standalone/common/alter/rename_table.result +++ b/tests/cases/standalone/common/alter/rename_table.result @@ -71,9 +71,9 @@ Error: 4000(TableAlreadyExists), Table already exists, table: greptime.public.t DROP TABLE t; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE new_table; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/basic.result b/tests/cases/standalone/common/basic.result index 19ffd297ec..b86ca616ba 100644 --- a/tests/cases/standalone/common/basic.result +++ b/tests/cases/standalone/common/basic.result @@ -56,7 +56,7 @@ SELECT idc, avg(memory_util) FROM system_metrics GROUP BY idc ORDER BY idc; DROP TABLE system_metrics; -Affected Rows: 1 +Affected Rows: 0 create table foo ( host string, @@ -92,5 +92,5 @@ select * from foo; DROP TABLE foo; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/catalog/schema.result b/tests/cases/standalone/common/catalog/schema.result index 8c6985c299..d62cd3d02d 100644 --- a/tests/cases/standalone/common/catalog/schema.result +++ b/tests/cases/standalone/common/catalog/schema.result @@ -37,7 +37,7 @@ Affected Rows: 0 DROP TABLE hello; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE hello(i TIMESTAMP TIME INDEX); @@ -83,7 +83,7 @@ SHOW TABLES; DROP TABLE hello; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE hello; diff --git a/tests/cases/standalone/common/copy/copy_from_fs_csv.result b/tests/cases/standalone/common/copy/copy_from_fs_csv.result index 2cdcf4b872..d46b5b75fb 100644 --- a/tests/cases/standalone/common/copy/copy_from_fs_csv.result +++ b/tests/cases/standalone/common/copy/copy_from_fs_csv.result @@ -63,17 +63,17 @@ select * from with_pattern order by ts; drop table demo; -Affected Rows: 1 +Affected Rows: 0 drop table with_filename; -Affected Rows: 1 +Affected Rows: 0 drop table with_path; -Affected Rows: 1 +Affected Rows: 0 drop table with_pattern; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/copy/copy_from_fs_json.result b/tests/cases/standalone/common/copy/copy_from_fs_json.result index 9ddda24dd5..3f8826e251 100644 --- a/tests/cases/standalone/common/copy/copy_from_fs_json.result +++ b/tests/cases/standalone/common/copy/copy_from_fs_json.result @@ -63,17 +63,17 @@ select * from with_pattern order by ts; drop table demo; -Affected Rows: 1 +Affected Rows: 0 drop table with_filename; -Affected Rows: 1 +Affected Rows: 0 drop table with_path; -Affected Rows: 1 +Affected Rows: 0 drop table with_pattern; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/copy/copy_from_fs_parquet.result b/tests/cases/standalone/common/copy/copy_from_fs_parquet.result index 6366bdbaa0..7bcabbbc2b 100644 --- a/tests/cases/standalone/common/copy/copy_from_fs_parquet.result +++ b/tests/cases/standalone/common/copy/copy_from_fs_parquet.result @@ -63,17 +63,17 @@ select * from with_pattern order by ts; drop table demo; -Affected Rows: 1 +Affected Rows: 0 drop table with_filename; -Affected Rows: 1 +Affected Rows: 0 drop table with_path; -Affected Rows: 1 +Affected Rows: 0 drop table with_pattern; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/copy/copy_to_fs.result b/tests/cases/standalone/common/copy/copy_to_fs.result index b8c16dc565..932067ee57 100644 --- a/tests/cases/standalone/common/copy/copy_to_fs.result +++ b/tests/cases/standalone/common/copy/copy_to_fs.result @@ -20,5 +20,5 @@ Affected Rows: 2 drop table demo; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/create/create.result b/tests/cases/standalone/common/create/create.result index 358e467c31..67df15c3f3 100644 --- a/tests/cases/standalone/common/create/create.result +++ b/tests/cases/standalone/common/create/create.result @@ -74,19 +74,19 @@ DESC TABLE test2; DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE times; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test1; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test2; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE test_pk ("timestamp" TIMESTAMP TIME INDEX, host STRING PRIMARY KEY, "value" DOUBLE); @@ -104,7 +104,7 @@ DESC TABLE test_pk; DROP TABLE test_pk; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE test_multiple_pk_definitions ("timestamp" TIMESTAMP TIME INDEX, host STRING PRIMARY KEY, "value" DOUBLE, PRIMARY KEY(host)); diff --git a/tests/cases/standalone/common/create/create_type_alias.result b/tests/cases/standalone/common/create/create_type_alias.result index 6e192a4e5f..7c7c005737 100644 --- a/tests/cases/standalone/common/create/create_type_alias.result +++ b/tests/cases/standalone/common/create/create_type_alias.result @@ -76,5 +76,5 @@ DESC TABLE data_types; DROP TABLE data_types; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/create/upper_case_table_name.result b/tests/cases/standalone/common/create/upper_case_table_name.result index eed6c1e6f4..f7d434f85d 100644 --- a/tests/cases/standalone/common/create/upper_case_table_name.result +++ b/tests/cases/standalone/common/create/upper_case_table_name.result @@ -29,7 +29,7 @@ select * from "system_Metric"; drop table system_Metric; -Affected Rows: 1 +Affected Rows: 0 use public; diff --git a/tests/cases/standalone/common/cte/cte.result b/tests/cases/standalone/common/cte/cte.result index 4ca532f887..5f399b61d6 100644 --- a/tests/cases/standalone/common/cte/cte.result +++ b/tests/cases/standalone/common/cte/cte.result @@ -125,5 +125,5 @@ Error: 3000(PlanQuery), No field named alias2. Valid fields are a. drop table a; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/cte/cte_in_cte.result b/tests/cases/standalone/common/cte/cte_in_cte.result index 7a72385709..9e50caef2a 100644 --- a/tests/cases/standalone/common/cte/cte_in_cte.result +++ b/tests/cases/standalone/common/cte/cte_in_cte.result @@ -73,5 +73,5 @@ Error: 3000(PlanQuery), Error during planning: Table not found: greptime.public. drop table a; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/delete/delete.result b/tests/cases/standalone/common/delete/delete.result index 0a593f3f5c..7885c4b0cf 100644 --- a/tests/cases/standalone/common/delete/delete.result +++ b/tests/cases/standalone/common/delete/delete.result @@ -58,5 +58,5 @@ SELECT ts, host, cpu, memory FROM monitor ORDER BY ts; DROP TABLE monitor; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/describe/describe_table.result b/tests/cases/standalone/common/describe/describe_table.result index b351bb3f24..1d414462fe 100644 --- a/tests/cases/standalone/common/describe/describe_table.result +++ b/tests/cases/standalone/common/describe/describe_table.result @@ -54,5 +54,5 @@ desc host_load1; drop table host_load1; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/insert/big_insert.result b/tests/cases/standalone/common/insert/big_insert.result index 1c5906356a..56e33e8719 100644 --- a/tests/cases/standalone/common/insert/big_insert.result +++ b/tests/cases/standalone/common/insert/big_insert.result @@ -16,7 +16,7 @@ SELECT COUNT(*) FROM integers; DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE integers(i BIGINT, j INTEGER, ts TIMESTAMP TIME INDEX); @@ -37,5 +37,5 @@ SELECT * FROM integers; DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/insert/insert.result b/tests/cases/standalone/common/insert/insert.result index 45f6a9137b..d862eef762 100644 --- a/tests/cases/standalone/common/insert/insert.result +++ b/tests/cases/standalone/common/insert/insert.result @@ -40,9 +40,9 @@ Affected Rows: 1 DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE presentations; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/insert/insert_default.result b/tests/cases/standalone/common/insert/insert_default.result index f4995b14d0..9dc85eba36 100644 --- a/tests/cases/standalone/common/insert/insert_default.result +++ b/tests/cases/standalone/common/insert/insert_default.result @@ -58,9 +58,9 @@ SELECT * FROM test2; DROP TABLE test1; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test2; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/insert/insert_invalid.result b/tests/cases/standalone/common/insert/insert_invalid.result index 5ba9ea14be..af74e72778 100644 --- a/tests/cases/standalone/common/insert/insert_invalid.result +++ b/tests/cases/standalone/common/insert/insert_invalid.result @@ -44,9 +44,9 @@ Error: 1004(InvalidArguments), Invalid SQL, error: column count mismatch, column DROP TABLE strings; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE a; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/insert/insert_select.result b/tests/cases/standalone/common/insert/insert_select.result index 209502d9b0..5fd5efbe61 100644 --- a/tests/cases/standalone/common/insert/insert_select.result +++ b/tests/cases/standalone/common/insert/insert_select.result @@ -37,9 +37,9 @@ select * from demo2 order by ts; drop table demo1; -Affected Rows: 1 +Affected Rows: 0 drop table demo2; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/insert/special_value.result b/tests/cases/standalone/common/insert/special_value.result index 177e829c87..e4b030e64a 100644 --- a/tests/cases/standalone/common/insert/special_value.result +++ b/tests/cases/standalone/common/insert/special_value.result @@ -27,5 +27,5 @@ Error: 3001(EngineExecuteQuery), Cast error: Cannot cast string 'infinityyyy' to drop table data; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/order/limit.result b/tests/cases/standalone/common/order/limit.result index 3a6da8e09a..a12352ee84 100644 --- a/tests/cases/standalone/common/order/limit.result +++ b/tests/cases/standalone/common/order/limit.result @@ -121,13 +121,13 @@ Error: 3000(PlanQuery), Error during planning: LIMIT must not be negative DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test2; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/order/limit_union.result b/tests/cases/standalone/common/order/limit_union.result index 1ed9c9fd10..75d636bf07 100644 --- a/tests/cases/standalone/common/order/limit_union.result +++ b/tests/cases/standalone/common/order/limit_union.result @@ -30,5 +30,5 @@ SELECT COUNT(*) FROM (SELECT * FROM integers UNION ALL SELECT * FROM integers LI DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/order/nulls_first.result b/tests/cases/standalone/common/order/nulls_first.result index 4fbf094837..9b0c28da79 100644 --- a/tests/cases/standalone/common/order/nulls_first.result +++ b/tests/cases/standalone/common/order/nulls_first.result @@ -106,5 +106,5 @@ SELECT * FROM test ORDER BY i NULLS LAST; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/order/order_by.result b/tests/cases/standalone/common/order/order_by.result index d03e088d95..289da619b6 100644 --- a/tests/cases/standalone/common/order/order_by.result +++ b/tests/cases/standalone/common/order/order_by.result @@ -227,5 +227,5 @@ Error: 3000(PlanQuery), Error during planning: For SELECT DISTINCT, ORDER BY exp DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/order/order_by_exceptions.result b/tests/cases/standalone/common/order/order_by_exceptions.result index eac09e35ae..bd3bfe545a 100644 --- a/tests/cases/standalone/common/order/order_by_exceptions.result +++ b/tests/cases/standalone/common/order/order_by_exceptions.result @@ -62,5 +62,5 @@ Error: 3000(PlanQuery), Error during planning: Union queries must have the same DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/order/order_variable_size_payload.result b/tests/cases/standalone/common/order/order_variable_size_payload.result index 3ca0af9af4..5a7dc32a18 100644 --- a/tests/cases/standalone/common/order/order_variable_size_payload.result +++ b/tests/cases/standalone/common/order/order_variable_size_payload.result @@ -392,41 +392,41 @@ ORDER BY "Sort", "EmployeeID"; DROP TABLE t0; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test0; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test1; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test4; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE tpch_q1_agg; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test5; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE test6; -Affected Rows: 1 +Affected Rows: 0 DROP table test7; -Affected Rows: 1 +Affected Rows: 0 DROP table test8; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE DirectReports; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/select/dummy.result b/tests/cases/standalone/common/select/dummy.result index 58845ddf58..eb8969ba31 100644 --- a/tests/cases/standalone/common/select/dummy.result +++ b/tests/cases/standalone/common/select/dummy.result @@ -109,5 +109,5 @@ select TO_UNIXTIME(b) from test_unixtime; DROP TABLE test_unixtime; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/select/like.result b/tests/cases/standalone/common/select/like.result index b47528b80e..3bb7380360 100644 --- a/tests/cases/standalone/common/select/like.result +++ b/tests/cases/standalone/common/select/like.result @@ -26,5 +26,5 @@ SELECT * FROM host WHERE host LIKE '%+%'; DROP TABLE host; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/select/range_select.result b/tests/cases/standalone/common/select/range_select.result index 033d34f24c..17dfe05d39 100644 --- a/tests/cases/standalone/common/select/range_select.result +++ b/tests/cases/standalone/common/select/range_select.result @@ -284,7 +284,7 @@ Error: 1003(Internal), Error during planning: Illegal argument in range select q DROP TABLE host; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE host_sec ( ts timestamp(0) time index, @@ -320,5 +320,5 @@ Affected Rows: 18 -- SELECT ts, host, min(val) RANGE '10s', max(val) RANGE '10s' FROM host_sec ALIGN '5s' ORDER BY host, ts; DROP TABLE host_sec; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/timestamp/timestamp.result b/tests/cases/standalone/common/timestamp/timestamp.result index b52ee558fc..331f1c8dc8 100644 --- a/tests/cases/standalone/common/timestamp/timestamp.result +++ b/tests/cases/standalone/common/timestamp/timestamp.result @@ -80,5 +80,5 @@ SELECT * FROM timestamp_with_precision ORDER BY ts ASC; DROP TABLE timestamp_with_precision; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/tql/aggr_over_time.result b/tests/cases/standalone/common/tql/aggr_over_time.result index 5b73fc5445..19930a200c 100644 --- a/tests/cases/standalone/common/tql/aggr_over_time.result +++ b/tests/cases/standalone/common/tql/aggr_over_time.result @@ -59,7 +59,7 @@ tql eval (60, 60, '1s') stddev_over_time((metric[1m])); drop table metric; -Affected Rows: 1 +Affected Rows: 0 -- load 10s -- metric 1.5990505637277868 1.5990505637277868 1.5990505637277868 @@ -97,7 +97,7 @@ tql eval (60, 60, '1s') stddev_over_time(metric[1m]); drop table metric; -Affected Rows: 1 +Affected Rows: 0 -- Port from functions.test L632 - L680, commit 001ee2620e094970e5657ce39275b2fccdbd1359 -- Include quantile over time @@ -163,7 +163,7 @@ Affected Rows: 8 -- tql eval (60, 60, '1s') (quantile_over_time(2, (data[1m]))); drop table data; -Affected Rows: 1 +Affected Rows: 0 -- Port from functions.test L773 - L802, commit 001ee2620e094970e5657ce39275b2fccdbd1359 -- Include max/min/last over time @@ -219,5 +219,5 @@ Affected Rows: 15 -- tql eval (60, 60, '1s') last_over_time(data[1m]); drop table data; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/tql/basic.result b/tests/cases/standalone/common/tql/basic.result index 46f600f9ce..12fab1cbb0 100644 --- a/tests/cases/standalone/common/tql/basic.result +++ b/tests/cases/standalone/common/tql/basic.result @@ -32,5 +32,5 @@ TQL EVAL (0, 10, '5s') test{k="a"}; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/tql/binary_operator.result b/tests/cases/standalone/common/tql/binary_operator.result index 4f0a022c48..377fdcf9c9 100644 --- a/tests/cases/standalone/common/tql/binary_operator.result +++ b/tests/cases/standalone/common/tql/binary_operator.result @@ -35,7 +35,7 @@ tql eval (0, 30, '10s'), data + (1 > bool 2); drop table data; -Affected Rows: 1 +Affected Rows: 0 -- Binary operator on table with multiple field columns create table data (ts timestamp time index, val1 double, val2 double, val3 double); @@ -84,5 +84,5 @@ tql eval (0, 30, '10s'), data{__field__="val1", __field__="val2"} + data{__field drop table data; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/tql/join.result b/tests/cases/standalone/common/tql/join.result index f1085a1c33..56199732e0 100644 --- a/tests/cases/standalone/common/tql/join.result +++ b/tests/cases/standalone/common/tql/join.result @@ -94,9 +94,9 @@ tql eval(0, 10, '5s') sum(completion / 1000) + sum(completion / 1000); drop table completion; -Affected Rows: 1 +Affected Rows: 0 drop table prompt; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/tql/operator.result b/tests/cases/standalone/common/tql/operator.result index 1ad0461978..d3b85ac445 100644 --- a/tests/cases/standalone/common/tql/operator.result +++ b/tests/cases/standalone/common/tql/operator.result @@ -68,13 +68,13 @@ tql eval (300, 300, '1s') 10 atan2 NaN; drop table trigx; -Affected Rows: 1 +Affected Rows: 0 drop table trigy; -Affected Rows: 1 +Affected Rows: 0 drop table trignan; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/truncate/truncate.result b/tests/cases/standalone/common/truncate/truncate.result index 4267bc04d7..70e56d1ae1 100644 --- a/tests/cases/standalone/common/truncate/truncate.result +++ b/tests/cases/standalone/common/truncate/truncate.result @@ -72,5 +72,5 @@ SELECT ts, host, cpu, memory FROM monitor ORDER BY ts; DROP TABLE monitor; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/blob/blob.result b/tests/cases/standalone/common/types/blob/blob.result index 1673d99fe2..f716d6b038 100644 --- a/tests/cases/standalone/common/types/blob/blob.result +++ b/tests/cases/standalone/common/types/blob/blob.result @@ -130,9 +130,9 @@ SELECT '\x7F'::BYTEA; drop table blobs; -Affected Rows: 1 +Affected Rows: 0 drop table blob_empty; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/infinity.result b/tests/cases/standalone/common/types/float/infinity.result index 06102ca2cc..c35287f1cd 100644 --- a/tests/cases/standalone/common/types/float/infinity.result +++ b/tests/cases/standalone/common/types/float/infinity.result @@ -211,7 +211,7 @@ SELECT f FROM floats WHERE f<='-inf'::FLOAT ORDER BY f; DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- DOUBLE type -- inf as a constant @@ -425,5 +425,5 @@ SELECT d FROM doubles WHERE d<='-inf'::DOUBLE ORDER BY d; DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/nan.result b/tests/cases/standalone/common/types/float/nan.result index ab68884be7..9ab48fe88e 100644 --- a/tests/cases/standalone/common/types/float/nan.result +++ b/tests/cases/standalone/common/types/float/nan.result @@ -155,7 +155,7 @@ SELECT f FROM floats WHERE f<='nan'::FLOAT; DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- DOUBLE type -- nan as a constant @@ -312,5 +312,5 @@ SELECT d FROM doubles WHERE d<='nan'::DOUBLE; DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/nan_aggregate.result b/tests/cases/standalone/common/types/float/nan_aggregate.result index f95cda7b02..50958986ee 100644 --- a/tests/cases/standalone/common/types/float/nan_aggregate.result +++ b/tests/cases/standalone/common/types/float/nan_aggregate.result @@ -44,7 +44,7 @@ SELECT SUM(f) FROM floats; DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- double CREATE TABLE doubles(f DOUBLE, i INT, ts TIMESTAMP TIME INDEX); @@ -91,7 +91,7 @@ SELECT SUM(f) FROM doubles; DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 -- float double CREATE TABLE floats_doubles (f FLOAT, d DOUBLE, ts TIMESTAMP TIME INDEX); @@ -133,5 +133,5 @@ SELECT SUM(d) FROM floats_doubles WHERE d > 0; DROP TABLE floats_doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/nan_aggregates.result b/tests/cases/standalone/common/types/float/nan_aggregates.result index 69249efddb..5dee887f23 100644 --- a/tests/cases/standalone/common/types/float/nan_aggregates.result +++ b/tests/cases/standalone/common/types/float/nan_aggregates.result @@ -42,7 +42,7 @@ SELECT MIN(f), MAX(f) FROM floats; DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- double -- SELECT SUM('inf'::DOUBLE), SUM('-inf'::DOUBLE), SUM('nan'::DOUBLE); @@ -87,5 +87,5 @@ SELECT MIN(f), MAX(f) FROM doubles; DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/nan_join.result b/tests/cases/standalone/common/types/float/nan_join.result index 6a6d305e8d..fcc9b9dd28 100644 --- a/tests/cases/standalone/common/types/float/nan_join.result +++ b/tests/cases/standalone/common/types/float/nan_join.result @@ -31,7 +31,7 @@ Error: 3000(PlanQuery), Schema contains qualified field name floats.f and unqual DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- DOUBLE type CREATE TABLE doubles(d DOUBLE, ts TIMESTAMP TIME INDEX); @@ -64,5 +64,5 @@ Error: 3000(PlanQuery), Schema contains qualified field name doubles.d and unqua DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/nan_ordering.result b/tests/cases/standalone/common/types/float/nan_ordering.result index f39b78d63c..c9665bf968 100644 --- a/tests/cases/standalone/common/types/float/nan_ordering.result +++ b/tests/cases/standalone/common/types/float/nan_ordering.result @@ -96,7 +96,7 @@ SELECT COUNT(*) FROM floats WHERE f < 0; DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- DOUBLE type -- storing nan in a table @@ -195,5 +195,5 @@ SELECT COUNT(*) FROM doubles WHERE d < 0; DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/float/nan_window.result b/tests/cases/standalone/common/types/float/nan_window.result index 3a3e14b2ab..9af92a2098 100644 --- a/tests/cases/standalone/common/types/float/nan_window.result +++ b/tests/cases/standalone/common/types/float/nan_window.result @@ -62,7 +62,7 @@ SELECT i, f, SUM(i) OVER (ORDER BY i, f) FROM floats ORDER BY i, f; DROP TABLE floats; -Affected Rows: 1 +Affected Rows: 0 -- grouping by inf and nan CREATE TABLE doubles(f DOUBLE, i INT, ts TIMESTAMP TIME INDEX); @@ -127,5 +127,5 @@ SELECT i, f, SUM(i) OVER (ORDER BY i, f) FROM doubles ORDER BY i, f; DROP TABLE doubles; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/interval/interval.result b/tests/cases/standalone/common/types/interval/interval.result index 14d06feac6..1b9f3a64d1 100644 --- a/tests/cases/standalone/common/types/interval/interval.result +++ b/tests/cases/standalone/common/types/interval/interval.result @@ -265,5 +265,5 @@ Error: 3000(PlanQuery), Error during planning: The function Avg does not support DROP TABLE intervals; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/string/bigstring.result b/tests/cases/standalone/common/types/string/bigstring.result index db405e9c2e..725f2dd659 100644 --- a/tests/cases/standalone/common/types/string/bigstring.result +++ b/tests/cases/standalone/common/types/string/bigstring.result @@ -34,5 +34,5 @@ SELECT LENGTH(a) FROM test ORDER BY 1; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/string/scan_big_varchar.result b/tests/cases/standalone/common/types/string/scan_big_varchar.result index 449e443839..f8ff770fac 100644 --- a/tests/cases/standalone/common/types/string/scan_big_varchar.result +++ b/tests/cases/standalone/common/types/string/scan_big_varchar.result @@ -224,9 +224,9 @@ SELECT COUNT(*), COUNT(a), MAX(LENGTH(a)), SUM(LENGTH(a)) FROM bigtable; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE bigtable; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/string/unicode.result b/tests/cases/standalone/common/types/string/unicode.result index d9f1b70e56..903c4fe970 100644 --- a/tests/cases/standalone/common/types/string/unicode.result +++ b/tests/cases/standalone/common/types/string/unicode.result @@ -64,5 +64,5 @@ SELECT length(s) FROM emojis ORDER BY id; DROP TABLE emojis; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/timestamp/incorrect_timestamp.result b/tests/cases/standalone/common/types/timestamp/incorrect_timestamp.result index 945292234f..4b8895bb7a 100644 --- a/tests/cases/standalone/common/types/timestamp/incorrect_timestamp.result +++ b/tests/cases/standalone/common/types/timestamp/incorrect_timestamp.result @@ -60,5 +60,5 @@ Error: 2000(InvalidSyntax), Failed to parse value: Failed to parse 1900-1-1 00-0 DROP TABLE timestamp; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/timestamp/timestamp.result b/tests/cases/standalone/common/types/timestamp/timestamp.result index 64029eafc9..70063acfab 100644 --- a/tests/cases/standalone/common/types/timestamp/timestamp.result +++ b/tests/cases/standalone/common/types/timestamp/timestamp.result @@ -173,5 +173,5 @@ Error: 3001(EngineExecuteQuery), Parser error: Error parsing timestamp from '100 DROP TABLE timestamp; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/timestamp/timestamp_join.result b/tests/cases/standalone/common/types/timestamp/timestamp_join.result index 6c0b466a17..c207d88fbe 100644 --- a/tests/cases/standalone/common/types/timestamp/timestamp_join.result +++ b/tests/cases/standalone/common/types/timestamp/timestamp_join.result @@ -24,9 +24,9 @@ select count(*) from timestamp2 inner join timestamp1 on (timestamp1.i = timesta DROP TABLE timestamp1; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE timestamp2; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/timestamp/timestamp_precision.result b/tests/cases/standalone/common/types/timestamp/timestamp_precision.result index 6c68770200..6864cca4b7 100644 --- a/tests/cases/standalone/common/types/timestamp/timestamp_precision.result +++ b/tests/cases/standalone/common/types/timestamp/timestamp_precision.result @@ -85,5 +85,5 @@ SELECT TIMESTAMP '2020-01-01 01:23:45.12345678'::TIMESTAMP(9); DROP TABLE ts_precision; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/common/types/timestamp/timestamp_types.result b/tests/cases/standalone/common/types/timestamp/timestamp_types.result index 349caedcb0..ffe36657de 100644 --- a/tests/cases/standalone/common/types/timestamp/timestamp_types.result +++ b/tests/cases/standalone/common/types/timestamp/timestamp_types.result @@ -372,9 +372,9 @@ select '2008-01-01 00:00:11'::TIMESTAMP_NS = '2008-01-01 00:00:11'::TIMESTAMP_S; DROP TABLE timestamp; -Affected Rows: 1 +Affected Rows: 0 DROP TABLE timestamp_two; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/create/recover_created.result b/tests/cases/standalone/create/recover_created.result index 6f67fd782c..c384a7888a 100644 --- a/tests/cases/standalone/create/recover_created.result +++ b/tests/cases/standalone/create/recover_created.result @@ -8,11 +8,11 @@ Affected Rows: 0 drop table t1; -Affected Rows: 1 +Affected Rows: 0 drop table t2; -Affected Rows: 1 +Affected Rows: 0 -- SQLNESS ARG restart=true show tables; @@ -37,5 +37,5 @@ desc table t3; drop table t3; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/optimizer/filter_push_down.result b/tests/cases/standalone/optimizer/filter_push_down.result index 3480044d3b..5deb4641b9 100644 --- a/tests/cases/standalone/optimizer/filter_push_down.result +++ b/tests/cases/standalone/optimizer/filter_push_down.result @@ -196,5 +196,5 @@ Error: 3001(EngineExecuteQuery), Error during planning: Attempted to create Filt DROP TABLE integers; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/show/show_create.result b/tests/cases/standalone/show/show_create.result index ac3c9f6ea3..e9e22f060c 100644 --- a/tests/cases/standalone/show/show_create.result +++ b/tests/cases/standalone/show/show_create.result @@ -40,7 +40,7 @@ SHOW CREATE TABLE system_metrics; DROP TABLE system_metrics; -Affected Rows: 1 +Affected Rows: 0 CREATE TABLE not_supported_table_options_keys ( id INT UNSIGNED, diff --git a/tests/cases/standalone/tql-explain-analyze/analyze.result b/tests/cases/standalone/tql-explain-analyze/analyze.result index 32bb5223d6..701cec66ad 100644 --- a/tests/cases/standalone/tql-explain-analyze/analyze.result +++ b/tests/cases/standalone/tql-explain-analyze/analyze.result @@ -29,5 +29,5 @@ TQL ANALYZE (0, 10, '5s') test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0 diff --git a/tests/cases/standalone/tql-explain-analyze/explain.result b/tests/cases/standalone/tql-explain-analyze/explain.result index edc07a6a7f..1de5856fc5 100644 --- a/tests/cases/standalone/tql-explain-analyze/explain.result +++ b/tests/cases/standalone/tql-explain-analyze/explain.result @@ -30,5 +30,5 @@ TQL EXPLAIN (0, 10, '5s') test; DROP TABLE test; -Affected Rows: 1 +Affected Rows: 0