Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[branch-2.0](regression) fix stream load case fail #28681

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_timezone_shanghai "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -242,6 +243,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_timezone_Abidjan "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -286,6 +288,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_strict_mode "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -329,6 +332,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_max_filter_ratio "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -400,6 +404,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
qt_sql_squence "select * from stream_load_uniq_tbl_basic_sequence order by k00,k01"
} finally {
sql new File("""${context.file.parent}/ddl/uniq_tbl_basic_drop_sequence.sql""").text
Expand Down Expand Up @@ -432,6 +437,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"

streamLoad {
table "stream_load_" + tableName
Expand All @@ -454,6 +460,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
qt_sql_merge_type "select * from ${tableName1} order by k00,k01"
} finally {
Expand Down Expand Up @@ -532,6 +539,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"

def tableName1 = "stream_load_" + tableName
if (i <= 3) {
Expand All @@ -541,6 +549,7 @@ suite("test_stream_load_properties", "p0") {
}

do_streamload_2pc.call(txnId, "abort", tableName1)
sql "sync"

if (i <= 3) {
qt_sql_2pc_abort "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -570,8 +579,10 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"

do_streamload_2pc.call(txnId, "commit", tableName1)
sql "sync"

def count = 0
while (true) {
Expand Down Expand Up @@ -686,6 +697,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_skip_lines "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -805,6 +817,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_json_strip_outer_array "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -851,6 +864,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_json_jsonpath "select * from ${tableName1} order by k00,k01"
Expand Down Expand Up @@ -896,6 +910,7 @@ suite("test_stream_load_properties", "p0") {
assertEquals(0, json.NumberUnselectedRows)
}
}
sql "sync"
def tableName1 = "stream_load_" + tableName
if (i <= 3) {
qt_sql_json_read_by_line "select * from ${tableName1} order by k00,k01"
Expand Down
Loading