Skip to content

Commit

Permalink
fix stats error
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Oct 21, 2024
1 parent 51572c3 commit 268aaa2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions regression-test/suites/nereids_p0/stats/column_stats.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ suite("column_stats") {

// test invalid col stats => disable join reorder
qt_order "explain shape plan select * from region join nation on r_regionkey=n_regionkey"

sql "alter table region modify column r_regionkey set stats ('ndv'='0', 'num_nulls'='0', 'min_value'='0', 'max_value'='4', 'row_count'='0');"
sql """
set ignore_shape_nodes='PhysicalDistribute';
alter table region modify column r_regionkey set stats ('ndv'='0', 'num_nulls'='0', 'min_value'='0', 'max_value'='4', 'row_count'='0');
"""

qt_disable_order "explain shape plan select * from region join nation on r_regionkey=n_regionkey"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2336,7 +2336,7 @@ suite("load") {
"""

sql """
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'min_value'='0', 'max_value'='179769313', 'data_size'='168')
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'data_size'='168')
"""

sql """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,7 @@ suite("load") {
"""

sql """
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'min_value'='0', 'max_value'='179769313', 'data_size'='168')
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'data_size'='168')
"""

sql """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ suite("load") {
"""

sql """
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'min_value'='0', 'max_value'='179769313', 'data_size'='168')
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'data_size'='168')
"""

sql """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2339,7 +2339,7 @@ suite("load") {
"""

sql """
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'min_value'='0', 'max_value'='179769313', 'data_size'='168')
alter table call_center modify column cc_closed_date_sk set stats ('row_count'='42', 'ndv'='0', 'num_nulls'='42', 'data_size'='168')
"""

sql """
Expand Down

0 comments on commit 268aaa2

Please sign in to comment.