seawinde opened a new pull request, #40658:
URL: https://github.com/apache/doris/pull/40658

   ## Proposed changes
   This is brought by https://github.com/apache/doris/pull/26146
   If create materialized view as following, Should fail, because has the 
duplicated column name `o_orderdatE` and `o_orderdate`. But now can create 
materialized view successfully. the pr fix this.
   
   ```sql
           CREATE MATERIALIZED VIEW mv_1
           BUILD IMMEDIATE REFRESH AUTO ON MANUAL 
           partition by(o_orderdate) 
           DISTRIBUTED BY RANDOM BUCKETS 2 
           PROPERTIES ('replication_num' = '1') 
           AS  
           select o_orderdatE, o_shippriority, o_comment, o_orderdate, 
           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)) cnt_1, 
           bitmap_union(to_bitmap(case when o_shippriority > 2 and o_orderkey 
IN (2) then o_custkey else null end)) as cnt_2 
           from (select * from orders) as t1
           group by 
           o_orderdatE, 
           o_shippriority, 
           o_comment,
           o_orderdate;
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to