From a2f9336b122518b52449624b0971f90d3269965d Mon Sep 17 00:00:00 2001 From: feiniaofeiafei Date: Fri, 3 Jan 2025 21:32:38 +0800 Subject: [PATCH] add regression --- .../pull_up_predicate_set_op.out | 24 ------------------- .../pull_up_predicate_set_op.groovy | 4 ---- 2 files changed, 28 deletions(-) diff --git a/regression-test/data/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.out b/regression-test/data/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.out index c38205884dfd7b0..bde223ee410a34a 100644 --- a/regression-test/data/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.out +++ b/regression-test/data/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.out @@ -564,29 +564,5 @@ abbbb -- !intersect_with_hint_infer_set_operator_distinct_and_do_eliminate_gby_key_by_uniform -- 1 d2 --- !intersect_with_hint_infer_set_operator_distinct_and_do_eliminate_gby_key_by_uniform_shape -- -PhysicalResultSink ---PhysicalQuickSort[MERGE_SORT] -----PhysicalQuickSort[LOCAL_SORT] -------hashJoin[INNER_JOIN] hashCondition=((t3.a = t.a) and (t3.b = t.b)) otherCondition=() ---------PhysicalIntersect -----------filter((a = 1)) -------------hashAgg[GLOBAL] ---------------hashAgg[LOCAL] -----------------filter((test_pull_up_predicate_set_op1.b > 'ab')) -------------------PhysicalOlapScan[test_pull_up_predicate_set_op1] -----------filter((test_pull_up_predicate_set_op2.a = 1)) -------------hashAgg[GLOBAL] ---------------hashAgg[LOCAL] -----------------filter((test_pull_up_predicate_set_op2.a = 1) and (test_pull_up_predicate_set_op2.b > 'ab')) -------------------PhysicalOlapScan[test_pull_up_predicate_set_op2] ---------filter((t3.a = 1) and (t3.b > 'ab')) -----------PhysicalOlapScan[test_pull_up_predicate_set_op3] - -Hint log: -Used: use_INFER_SET_OPERATOR_DISTINCT -UnUsed: -SyntaxError: - -- !test -- diff --git a/regression-test/suites/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.groovy b/regression-test/suites/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.groovy index 45aaeae982aeb00..c8b958d12ec53af 100644 --- a/regression-test/suites/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.groovy +++ b/regression-test/suites/nereids_rules_p0/infer_predicate/pull_up_predicate_set_op.groovy @@ -471,10 +471,6 @@ suite("pull_up_predicate_set_op") { select /*+use_cbo_rule(INFER_SET_OPERATOR_DISTINCT)*/ t.a,t3.b from (select 1 as a,b from test_pull_up_predicate_set_op1 intersect select a,b from test_pull_up_predicate_set_op2 where b>'ab') t inner join test_pull_up_predicate_set_op3 t3 on t3.a=t.a and t3.b=t.b order by 1,2; """ - qt_intersect_with_hint_infer_set_operator_distinct_and_do_eliminate_gby_key_by_uniform_shape """ - explain shape plan select /*+use_cbo_rule(INFER_SET_OPERATOR_DISTINCT)*/ t.a,t3.b from (select 1 as a,b from test_pull_up_predicate_set_op1 intersect select a,b from test_pull_up_predicate_set_op2 where b>'ab') t inner join test_pull_up_predicate_set_op3 t3 - on t3.a=t.a and t3.b=t.b order by 1,2; - """ sql """ drop table if exists table_1_undef_partitions2_keys3_properties4_distributed_by52;