Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Nov 18, 2024
1 parent 259772a commit e97063f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e97063f

Please sign in to comment.