Skip to content

Commit

Permalink
add analyze after create mtmv
Browse files Browse the repository at this point in the history
  • Loading branch information
seawinde committed Oct 8, 2024
1 parent d6337ab commit 099376f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,8 @@ class Suite implements GroovyInterceptable {
logger.info("status is not success")
}
Assert.assertEquals("SUCCESS", status)
logger.info("waitingMTMVTaskFinished analyze mv name is " + result.last().get(5))
sql "analyze table ${result.last().get(6)}.${mvName} with sync;"
}

void waitingMTMVTaskFinishedByMvNameAllowCancel(String mvName) {
Expand Down Expand Up @@ -1399,6 +1401,9 @@ class Suite implements GroovyInterceptable {
logger.info("status is not success")
}
Assert.assertEquals("SUCCESS", status)
// Need to analyze materialized view for cbo to choose the materialized view accurately
logger.info("waitingMTMVTaskFinished analyze mv name is " + result.last().get(5))
sql "analyze table ${result.last().get(6)}.${result.last().get(5)} with sync;"
}

void waitingMTMVTaskFinishedNotNeedSuccess(String jobName) {
Expand Down

0 comments on commit 099376f

Please sign in to comment.