From 7bb9003a5fa356f5eec1a4d2a31f148e5d0d0a4f Mon Sep 17 00:00:00 2001 From: 924060929 <924060929@qq.com> Date: Wed, 10 Jul 2024 18:23:53 +0800 Subject: [PATCH] fix --- .../eliminate_outer_join/eliminate_outer_join.groovy | 8 ++++++++ .../new_shapes_p0/tpcds_sf1000/shape/query51.groovy | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy b/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy index d2cfae6eeb0cd96..7c86c7bf68948f2 100644 --- a/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy +++ b/regression-test/suites/nereids_rules_p0/eliminate_outer_join/eliminate_outer_join.groovy @@ -1,3 +1,5 @@ +import java.util.stream.Collectors + // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -38,6 +40,12 @@ suite("eliminate_outer_join") { ); """ + def variables = sql "show variables" + def variableString = variables.stream() + .map { it.toString() } + .collect(Collectors.joining("\n")) + logger.info("Variables:\n${variableString}") + qt_left_outer """ explain shape plan select * from t t1 left outer join t t2 on t1.id = t2.id where t2.score > 10; """ diff --git a/regression-test/suites/new_shapes_p0/tpcds_sf1000/shape/query51.groovy b/regression-test/suites/new_shapes_p0/tpcds_sf1000/shape/query51.groovy index 077fb7938382b76..122528dc8c7d0f7 100644 --- a/regression-test/suites/new_shapes_p0/tpcds_sf1000/shape/query51.groovy +++ b/regression-test/suites/new_shapes_p0/tpcds_sf1000/shape/query51.groovy @@ -1,3 +1,5 @@ +import java.util.stream.Collectors + /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file @@ -34,6 +36,12 @@ suite("query51") { sql 'set dump_nereids_memo=false' sql "set disable_nereids_rules=PRUNE_EMPTY_PARTITION" + def variables = sql "show variables" + def variableString = variables.stream() + .map { it.toString() } + .collect(Collectors.joining("\n")) + logger.info("Variables:\n${variableString}") + def ds = """WITH web_v1 as ( select ws_item_sk item_sk, d_date,