Skip to content

Commit

Permalink
[fix](statistics)Fix stats analyze p0 case. (apache#36251)
Browse files Browse the repository at this point in the history
Fix stats p0 case. Def a variable before using it.
  • Loading branch information
Jibing-Li authored Jun 13, 2024
1 parent 72a809b commit 3695417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regression-test/suites/statistics/analyze_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,7 @@ PARTITION `p599` VALUES IN (599)
);"""
sql """insert into test_analyze_specific_column values('%.', 2, 1);"""
sql """ANALYZE TABLE test_analyze_specific_column(col2) WITH SYNC"""
result = sql """SHOW COLUMN STATS test_analyze_specific_column"""
def result = sql """SHOW COLUMN STATS test_analyze_specific_column"""
assert result.size() == 1

// test escape sql
Expand Down Expand Up @@ -2765,7 +2765,7 @@ PARTITION `p599` VALUES IN (599)

// Test analyze default full.
sql """analyze table trigger_test with sync"""
def result = sql """show column stats trigger_test"""
result = sql """show column stats trigger_test"""
logger.info("show column trigger_test stats: " + result)
assertEquals(2, result.size())
assertEquals("4.0", result[0][2])
Expand Down

0 comments on commit 3695417

Please sign in to comment.