Skip to content

Commit

Permalink
[fix](test) fix some test cases apache#43217 (apache#43341)
Browse files Browse the repository at this point in the history
cherry pick from apache#43217
  • Loading branch information
morningman authored Nov 6, 2024
1 parent e49d736 commit 0d796fd
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,15 @@ t2 text Yes false \N NONE
varchar varchar(65533) Yes true \N
int_u bigint Yes false \N NONE

-- !sql --
int_u bigint Yes true \N
text varchar(65533) Yes true \N
t2 varchar(65533) Yes false \N NONE

-- !sql --
varchar varchar(65533) Yes true \N
int_u bigint Yes false \N NONE

-- !sql --
internal

Expand Down Expand Up @@ -870,3 +879,12 @@ t2 text Yes false \N NONE
varchar varchar(65533) Yes true \N
int_u bigint Yes false \N NONE

-- !sql --
int_u bigint Yes true \N
text varchar(65533) Yes true \N
t2 varchar(65533) Yes false \N NONE

-- !sql --
varchar varchar(65533) Yes true \N
int_u bigint Yes false \N NONE

11 changes: 7 additions & 4 deletions regression-test/suites/audit/test_audit_log_behavior.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,13 @@ suite("test_audit_log_behavior") {
sql tuple2[0]
}

// make sure audit event is created.
// see WorkloadRuntimeStatusMgr.getQueryNeedAudit()
Thread.sleep(6000)
sql """call flush_audit_log()"""
if (on == true) {
// only new planner supports call flush_audit_log
// make sure audit event is created.
// see WorkloadRuntimeStatusMgr.getQueryNeedAudit()
Thread.sleep(6000)
sql """call flush_audit_log()"""
}
// check result
for (int i = 0; i < cnt; i++) {
def tuple2 = sqls.get(i)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,7 @@ suite("test_mysql_jdbc_catalog", "p0,external,mysql,external_docker,external_doc
// ctas logic is different between new and old planner.
// so need to test both.
sql """drop catalog if exists mysql_conjuncts;"""
sql """set enable_nereids_planner=true"""
}
}

0 comments on commit 0d796fd

Please sign in to comment.