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

   ## Proposed changes
   
   Support to use cast when create sync materialized view
   Such as sync mv def is as following:
   
   you can use `cast(FLOOR(MINUTE(`time`) / 15) as decimal(9, 0)) ` in mv def 
which is not allowed before.
   
   >     CREATE MATERIALIZED VIEW sync_mv
   >     AS
   >     SELECT 
   >       decision,
   >       code, 
   >       app_name, 
   >       event_id, 
   >       event_type, 
   >       date_trunc(time, 'minute'), 
   >       DATE_FORMAT(
   >         `time`, '%Y-%m-%d'
   >       ), 
   >       cast(FLOOR(MINUTE(time) / 15) as decimal(9, 0)),
   >       count(id) as cnt
   >     from 
   >       test 
   >     group by 
   >       code, 
   >       app_name, 
   >       event_id, 
   >       event_type, 
   >       date_trunc(time, 'minute'), 
   >       decision, 
   >       DATE_FORMAT(time, '%Y-%m-%d'), 
   >       cast(FLOOR(MINUTE(`time`) / 15) as decimal(9, 0));
   
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to