when aggregate function roll up, we should check the qury and mv function argument is equal such as mv def and query sql as following, it should not rewrite success, because the bitmap_union_basic field augument is not equal to the `count(distinct case when o_shippriority > 10 and o_orderkey IN (1, 3) then o_custkey else null end)` field in query mv def: > select l_shipdate, o_orderdate, l_partkey, l_suppkey, > sum(o_totalprice) as sum_total, > max(o_totalprice) as max_total, > min(o_totalprice) as min_total, > count(*) as count_all, > bitmap_union(to_bitmap(case when o_shippriority > 1 and o_orderkey IN (1, 3) then o_custkey else null end)) as bitmap_union_basic > from lineitem > left join orders on lineitem.l_orderkey = orders.o_orderkey and l_shipdate = o_orderdate > group by > l_shipdate, > o_orderdate, > l_partkey, > l_suppkey; query sql: > select t1.l_partkey, t1.l_suppkey, o_orderdate, > sum(o_totalprice), > max(o_totalprice), > min(o_totalprice), > count(*), > count(distinct case when o_shippriority > 10 and o_orderkey IN (1, 3) then o_custkey else null end) > from (select * from lineitem where l_shipdate = '2023-12-11') t1 > left join orders on t1.l_orderkey = orders.o_orderkey and t1.l_shipdate = o_orderdate > group by > o_orderdate, > l_partkey, > l_suppkey;
# 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 # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. # fe-common This module is used to store some common classes of other modules. # spark-dpp This module is Spark DPP program, used for Spark Load function. Depends: fe-common # fe-core This module is the main process module of FE. Depends: fe-common, spark-dpp