Skip to content

Commit

Permalink
[Fix](Nereids) fix test leading random failed
Browse files Browse the repository at this point in the history
  • Loading branch information
LiBinfeng-01 committed Aug 30, 2023
1 parent 4fec082 commit 8f53b67
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regression-test/pipeline/p0/conf/regression-conf.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ testDirectories = ""
excludeGroups = ""
// this suites will not be executed

excludeSuites = "test_leading,test_stream_load_move_memtable,ds_rf95,test_default_limit,test_profile,test_broker_load,test_spark_load,test_refresh_mtmv,test_bitmap_filter,test_export_parquet,test_doris_jdbc_catalog,nereids_delete_mow_partial_update,test_hdfs_tvf"
excludeSuites = "test_stream_load_move_memtable,ds_rf95,test_default_limit,test_profile,test_broker_load,test_spark_load,test_refresh_mtmv,test_bitmap_filter,test_export_parquet,test_doris_jdbc_catalog,nereids_delete_mow_partial_update,test_hdfs_tvf"

// this directories will not be executed
excludeDirectories = "workload_manager_p1"
Expand Down
12 changes: 12 additions & 0 deletions regression-test/suites/nereids_p0/hint/test_leading.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ suite("test_leading") {
sql """create table t3 (c3 int, c33 int) distributed by hash(c3) buckets 3 properties('replication_num' = '1');"""
sql """create table t4 (c4 int, c44 int) distributed by hash(c4) buckets 3 properties('replication_num' = '1');"""

sql '''
alter table t1 modify column c1 set stats ('ndv'='1', 'avg_size'='1', 'max_size'='1', 'num_nulls'='0', 'min_value'='1', 'max_value'='1', 'row_count'='1')
'''
sql '''
alter table t2 modify column c2 set stats ('ndv'='1', 'avg_size'='1', 'max_size'='1', 'num_nulls'='0', 'min_value'='1', 'max_value'='1', 'row_count'='1')
'''
sql '''
alter table t3 modify column c3 set stats ('ndv'='1', 'avg_size'='1', 'max_size'='1', 'num_nulls'='0', 'min_value'='1', 'max_value'='1', 'row_count'='1')
'''
sql '''
alter table t4 modify column c4 set stats ('ndv'='1', 'avg_size'='1', 'max_size'='1', 'num_nulls'='0', 'min_value'='1', 'max_value'='1', 'row_count'='1')
'''
//// test inner join with all edge and vertax is complete and equal predicates
qt_select1 """explain shape plan select /*+ leading(t2 t1) */ * from t1 join t2 on c1 = c2;"""
qt_select2 """explain shape plan select /*+ leading(t1 t2) */ * from t1 join t2 on c1 = c2;"""
Expand Down

0 comments on commit 8f53b67

Please sign in to comment.