From e97063fb526558a874a8a442c508d0eaecaca970 Mon Sep 17 00:00:00 2001 From: feiniaofeiafei Date: Mon, 18 Nov 2024 20:51:32 +0800 Subject: [PATCH] fix regression --- .../data/ddl_p0/create_view_nereids/create_view_use_mv.out | 4 ---- .../ddl_p0/create_view_nereids/create_view_use_mv.groovy | 1 - 2 files changed, 5 deletions(-) diff --git a/regression-test/data/ddl_p0/create_view_nereids/create_view_use_mv.out b/regression-test/data/ddl_p0/create_view_nereids/create_view_use_mv.out index 3ab80f2e063f0b..c4df7484022baa 100644 --- a/regression-test/data/ddl_p0/create_view_nereids/create_view_use_mv.out +++ b/regression-test/data/ddl_p0/create_view_nereids/create_view_use_mv.out @@ -6,10 +6,6 @@ 3 298.50 99.50 99.50 3 3 6 3 3 2 \N \N 4 99.50 99.50 99.50 1 \N 4 4 4 1 \N \N --- !show_view_t_lineitem -- -v_for_alter CREATE VIEW `v_for_alter` AS select `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey` as `k1`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__``o_totalprice``` as `k2`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_MAX__``o_totalprice``` as `k3`,\n `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_MIN__``o_totalprice``` as `k4`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__CASE WHEN 1 IS NULL THEN 0 ELSE 1 END` as `k5`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem`.`l_orderkey`,\n sum(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`) as `sum_total`,\n max(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`) as `max_total`,\n min(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`) as `min_total`,\n count(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__``o_totalprice```) as `count_all`,\n bitmap_union(to_bitmap(case when `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey` > 1 then `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__``o_totalprice``` else null end)) `cnt_1`,\n bitmap_union(to_bitmap(case when `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey` > 2 then `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_MAX__``o_totalprice``` else null end)) as `cnt_2`\n from `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders` index t_mv_mv\n left join `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem` on `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem`.`l_orderkey` = `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`\n group by\n k1, k2, k3, k4, k5, `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem`.`l_orderkey`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`; -t_mv_v_view CREATE VIEW `t_mv_v_view` AS select `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey` AS `k1`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__``o_totalprice``` AS `k2`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_MAX__``o_totalprice``` AS `k3`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_MIN__``o_totalprice``` AS `k4`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__CASE WHEN 1 IS NULL THEN 0 ELSE 1 END` AS `k5`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem`.`l_orderkey` AS `k6`, sum(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`) AS `v1`, max(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`) AS `v2`, min(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`) AS `v3`, count(`internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__``o_totalprice```) AS `v4`, bitmap_union(to_bitmap(case when `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey` > 1 then `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_SUM__``o_totalprice``` else null end)) AS `v5`, bitmap_union(to_bitmap(case when `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey` > 2 then `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mva_MAX__``o_totalprice``` else null end)) AS `v6`\n from `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders` index t_mv_mv\n left join `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem` on `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem`.`l_orderkey` = `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`\n group by\n k1, k2, k3, k4, k5, `internal`.`regression_test_ddl_p0_create_view_nereids`.`lineitem`.`l_orderkey`, `internal`.`regression_test_ddl_p0_create_view_nereids`.`orders`.`mv_o_orderkey`; - -- !alter_view_from_mv -- \N 99.50 99.50 99.50 1 \N \N \N \N 1 \N \N 1 208.70 109.20 99.50 3 1 3 1 1 3 \N \N diff --git a/regression-test/suites/ddl_p0/create_view_nereids/create_view_use_mv.groovy b/regression-test/suites/ddl_p0/create_view_nereids/create_view_use_mv.groovy index 925e95f64377e6..295b195aa58954 100644 --- a/regression-test/suites/ddl_p0/create_view_nereids/create_view_use_mv.groovy +++ b/regression-test/suites/ddl_p0/create_view_nereids/create_view_use_mv.groovy @@ -75,7 +75,6 @@ suite("create_view_use_mv") { group by k1, k2, k3, k4, k5, l_orderkey, mv_o_orderkey""" qt_create_view_from_mv "select * from t_mv_v_view order by 1" - qt_show_view_t_lineitem "show view from lineitem" sql "drop view if exists v_for_alter" sql "CREATE VIEW v_for_alter AS SELECT * FROM orders"