Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken committed Dec 7, 2023
1 parent 046cabc commit 5c066d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmd/sql_cmd_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ TEST_F(SqlCmdTest, SelectIntoOutfile) {
router->ExecuteSQL(select_into_sql, &status);
ASSERT_FALSE(status.IsOK());

// False - Option un-supported
// True - Option un-supported will be ignored
select_into_sql =
"select * from " + name + " into outfile '" + file_path + "' options (mode = 'overwrite', test = 'null')";
router->ExecuteSQL(select_into_sql, &status);
ASSERT_FALSE(status.IsOK());
ASSERT_TRUE(status.IsOK());

// False - Type un-supproted
select_into_sql = "select * from " + name + " into outfile '" + file_path + "' options (mode = 1)";
Expand Down Expand Up @@ -647,7 +647,7 @@ TEST_P(DBSDKTest, LoadDataError) {
"LOAD DATA INFILE 'not_exist.csv' INTO TABLE trans options(mode='overwrite', load_mode='local', thread=60);";
sr->ExecuteSQL(load_sql, &status);
ASSERT_FALSE(status.IsOK()) << status.msg;
ASSERT_EQ(status.msg, "online data load only supports 'append' mode");
ASSERT_EQ(status.msg, "INVALID_ARGUMENT: local load mode must be append\n");

load_sql =
"LOAD DATA INFILE 'not_exist.csv' INTO TABLE trans options(format='parquet', load_mode='local', thread=60);";
Expand Down

0 comments on commit 5c066d5

Please sign in to comment.