Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jzl18thu committed Nov 22, 2024
1 parent c3403a2 commit 9bfda88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/test/cli/test_infile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ bash -c "cat 'test/src/test/resources/fileReadAndWrite/csv/test.csv' > 'test/src

bash -c "sed -i '1ikey,d m,b,[c],a' 'test/src/test/resources/fileReadAndWrite/csv/test1'"

COMMAND1='LOAD DATA FROM INFILE "'"test/src/test/resources/fileReadAndWrite/csv/test1"'" AS CSV INTO t1;'
COMMAND1='LOAD DATA FROM INFILE "'"test/src/test/resources/fileReadAndWrite/csv/test1"'" AS CSV INTO t1 AT 10;'

bash -c "echo '$COMMAND1' | xargs -0 -t -i ${SCRIPT_COMMAND}"
2 changes: 1 addition & 1 deletion .github/scripts/test/cli/test_infile_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ sh -c "cat test/src/test/resources/fileReadAndWrite/csv/test.csv > test/src/test

sh -c "sed -i '' '1s/^/key,d m,b,[c],a\n/' test/src/test/resources/fileReadAndWrite/csv/test1"

sh -c "echo 'LOAD DATA FROM INFILE "'"test/src/test/resources/fileReadAndWrite/csv/test1"'" AS CSV INTO t1;' | xargs -0 -t -I F sh client/target/iginx-client-$1/sbin/start_cli.sh -e 'F'"
sh -c "echo 'LOAD DATA FROM INFILE "'"test/src/test/resources/fileReadAndWrite/csv/test1"'" AS CSV INTO t1 AT 10;' | xargs -0 -t -I F sh client/target/iginx-client-$1/sbin/start_cli.sh -e 'F'"
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public void testLoadData() {
+ "+---+------+----+----+------+\n"
+ "|key|t1._c_|t1.a|t1.b|t1.d_m|\n"
+ "+---+------+----+----+------+\n"
+ "| 0| true| aaa| 0.5| 0.0|\n"
+ "| 1| false| bbb| 1.5| 1.0|\n"
+ "| 2| true| ccc| 2.5| 2.0|\n"
+ "| 3| false| ddd| 3.5| 3.0|\n"
+ "| 4| true| eee| 4.5| 4.0|\n"
+ "| 10| true| aaa| 0.5| 0.0|\n"
+ "| 11| false| bbb| 1.5| 1.0|\n"
+ "| 12| true| ccc| 2.5| 2.0|\n"
+ "| 13| false| ddd| 3.5| 3.0|\n"
+ "| 14| true| eee| 4.5| 4.0|\n"
+ "+---+------+----+----+------+\n"
+ "Total line number = 5\n";
executor.executeAndCompare(query, expected);
Expand Down

0 comments on commit 9bfda88

Please sign in to comment.