Skip to content

Commit

Permalink
[test](regression) add 'sync' for som stream load
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhhsg committed Nov 21, 2023
1 parent 7e707f5 commit 04fa021
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions regression-test/suites/delete_p0/test_delete_where_in.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ suite("test_delete_where_in", "delete_p0") {
assertTrue(json.NumberLoadedRows > 0 && json.LoadBytes > 0)
}
}

sql """ sync; """

def loadRowCount = sql "select count(*) from ${tb_name};"
logger.info("select count(*) from ${loadRowCount};")

Expand Down
2 changes: 2 additions & 0 deletions regression-test/suites/demo_p0/streamLoad_action.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ suite("streamLoad_action") {
directToBe backendIps.get(backendId), backendHttpPorts.get(backendId) as int
}

sql """ sync; """

order_qt_select_1 "SELECT * FROM ${tableName}"
sql "TRUNCATE TABLE ${tableName}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ suite("test_export_empty_table", "p0") {
}
}

sql """ sync; """

qt_select_load1 """ SELECT * FROM ${table_load_name} t ORDER BY user_id; """

} finally {
Expand Down
2 changes: 2 additions & 0 deletions regression-test/suites/export_p0/test_export_orc.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ suite("test_export_orc", "p0") {
}
}

sql """ sync; """

qt_select_load1 """ SELECT * FROM ${table_load_name} t ORDER BY user_id; """

} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ suite("test_outfile_separator") {
time 10000 // limit inflight 10s
}

sql """ sync; """

qt_select_2 """ SELECT * FROM ${tableName} t ORDER BY k1; """

} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ suite("test_json_load_and_function", "p0") {
}
}

sql """ sync; """

// check result
qt_select "SELECT * FROM ${testTable} ORDER BY id"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ suite("test_jsonb_load_and_function", "p0") {
}
}

sql """ sync; """

// check result
qt_select "SELECT * FROM ${testTable} ORDER BY id"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ suite("test_stream_load", "p0") {
assertEquals(1, json.NumberFilteredRows)
}
}
qt_sql_strict_mode_ratio "select * from ${tableName} order by k1, k2"

sql "sync"

qt_sql_strict_mode_ratio "select * from ${tableName} order by k1, k2"

sql """ DROP TABLE IF EXISTS ${tableName} """
sql """
CREATE TABLE IF NOT EXISTS ${tableName} (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ suite("test_primary_key_partial_update_seq_col", "p0") {
file 'basic.csv'
time 10000 // limit inflight 10s
}

sql "sync"

qt_sql """ select id,score from ${tableName2} order by id;"""
sql """ DROP TABLE IF EXISTS ${tableName2}; """
}
Expand Down

0 comments on commit 04fa021

Please sign in to comment.