Skip to content

Commit

Permalink
[fix](regression)Fix paimon row count case. (apache#45994)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?
Fix paimon row count case.

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None
  • Loading branch information
Jibing-Li authored Dec 26, 2024
1 parent cd9e5bb commit d1357ec
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -30,19 +30,20 @@ suite("test_paimon_table_stats", "p0,external,doris,external_docker,external_doc
"warehouse" = "hdfs://${externalEnvIp}:${hdfs_port}/user/doris/paimon1"
);"""

def assert_stats = { table_name, cnt ->
def assert_stats = { table_name, cnt ->
def retry = 0
def act = ""
while (retry < 10) {
def result = sql """ show table stats ${table_name} """
act = result[0][2]
if (act != "-1") {
logger.info("current table row count is " + act)
if (!act.equals("-1")) {
break;
}
Thread.sleep(2000)
retry++
}
assertEquals(act, cnt)
assertEquals(cnt, act)
}

// select

0 comments on commit d1357ec

Please sign in to comment.