From 2ea71568c77bf3c5adcc481eab57646055f7e5e1 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 30 Jun 2023 17:30:24 +0800 Subject: [PATCH 1/2] fix information schema case Signed-off-by: Ruihang Xia --- .../standalone/common/system/information_schema.result | 6 ++---- tests/cases/standalone/common/system/information_schema.sql | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/cases/standalone/common/system/information_schema.result b/tests/cases/standalone/common/system/information_schema.result index de07ebe37cca..826fbbc77279 100644 --- a/tests/cases/standalone/common/system/information_schema.result +++ b/tests/cases/standalone/common/system/information_schema.result @@ -3,8 +3,7 @@ database my_db; Affected Rows: 1 -use -my_db; +use my_db; ++ ++ @@ -51,8 +50,7 @@ order by table_schema, table_name; | greptime | my_db | foo | ts | Int64 | TIME INDEX | +---------------+--------------+------------+-------------+-----------+---------------+ -use -public; +use public; ++ ++ diff --git a/tests/cases/standalone/common/system/information_schema.sql b/tests/cases/standalone/common/system/information_schema.sql index c033cad8b6d1..4987bb053dbb 100644 --- a/tests/cases/standalone/common/system/information_schema.sql +++ b/tests/cases/standalone/common/system/information_schema.sql @@ -1,8 +1,7 @@ create database my_db; -use -my_db; +use my_db; create table foo ( @@ -26,5 +25,4 @@ where table_catalog = 'greptime' and table_schema != 'public' order by table_schema, table_name; -use -public; +use public; From ab62b49dee031fdf5f2b42876d6ca7e805dee30d Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 30 Jun 2023 19:27:12 +0800 Subject: [PATCH 2/2] disable -Wunused_result lint Signed-off-by: Ruihang Xia --- .cargo/config.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 77736304c643..bf125a3eda47 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -13,5 +13,4 @@ rustflags = [ "-Wclippy::print_stderr", "-Wclippy::implicit_clone", "-Aclippy::items_after_test_module", - "-Wunused_results", ]