From c188fc324417a9732147e753dd9edaf55ed2ae71 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 13 Dec 2021 08:35:40 +0300 Subject: [PATCH] Update test --- .../01658_read_file_to_stringcolumn.reference | 10 ++++---- .../01658_read_file_to_stringcolumn.sh | 24 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/tests/queries/0_stateless/01658_read_file_to_stringcolumn.reference b/tests/queries/0_stateless/01658_read_file_to_stringcolumn.reference index ad8df154dcc..cee443da8fe 100644 --- a/tests/queries/0_stateless/01658_read_file_to_stringcolumn.reference +++ b/tests/queries/0_stateless/01658_read_file_to_stringcolumn.reference @@ -8,11 +8,11 @@ ccccccccc aaaaaaaaa bbbbbbbbb aaaaaaaaa bbbbbbbbb ccccccccc -:233 -:79 +:107 +:74 +:35 :35 :35 -:233 695071 aaaaaaaaa bbbbbbbbb ccccccccc aaaaaaaaa bbbbbbbbb @@ -21,5 +21,5 @@ ccccccccc aaaaaaaaa bbbbbbbbb ccccccccc aaaaaaaaa bbbbbbbbb 695071 0 :0 -:233 -:79 +:107 +:74 diff --git a/tests/queries/0_stateless/01658_read_file_to_stringcolumn.sh b/tests/queries/0_stateless/01658_read_file_to_stringcolumn.sh index 3797b264f26..bbf5f87d113 100755 --- a/tests/queries/0_stateless/01658_read_file_to_stringcolumn.sh +++ b/tests/queries/0_stateless/01658_read_file_to_stringcolumn.sh @@ -31,10 +31,10 @@ ${CLICKHOUSE_CLIENT} --query "insert into data select file('${user_files_path}/a ${CLICKHOUSE_CLIENT} --query "insert into data select file('${user_files_path}/a.txt'), file('${user_files_path}/b.txt');";echo ":"$? ${CLICKHOUSE_CLIENT} --query "select file('${user_files_path}/c.txt'), * from data";echo ":"$? ${CLICKHOUSE_CLIENT} --multiquery --query " - create table filenames(name String) engine=MergeTree() order by tuple(); - insert into filenames values ('a.txt'), ('b.txt'), ('c.txt'); - select file(name) from filenames format TSV; - drop table if exists filenames; + create table filenames(name String) engine=MergeTree() order by tuple(); + insert into filenames values ('a.txt'), ('b.txt'), ('c.txt'); + select file(name) from filenames format TSV; + drop table if exists filenames; " # Invalid cases: (Here using sub-shell to catch exception avoiding the test quit) @@ -63,14 +63,14 @@ echo $c_count # Valid cases: # The default dir is the CWD path in LOCAL mode ${CLICKHOUSE_LOCAL} --query " - drop table if exists data; - create table data (A String, B String) engine=MergeTree() order by A; - select file('a.txt'), file('b.txt'); - insert into data select file('a.txt'), file('b.txt'); - insert into data select file('a.txt'), file('b.txt'); - select file('c.txt'), * from data; - select file('/tmp/c.txt'), * from data; - select $c_count, $c_count -length(file('${CURDIR}/01518_nullable_aggregate_states2.reference')) + drop table if exists data; + create table data (A String, B String) engine=MergeTree() order by A; + select file('a.txt'), file('b.txt'); + insert into data select file('a.txt'), file('b.txt'); + insert into data select file('a.txt'), file('b.txt'); + select file('c.txt'), * from data; + select file('/tmp/c.txt'), * from data; + select $c_count, $c_count -length(file('${CURDIR}/01518_nullable_aggregate_states2.reference')) " echo ":"$?