EmmyMiao87 commented on issue #3331: query against view failed when the view 
contains union
URL: 
https://github.com/apache/incubator-doris/issues/3331#issuecomment-614457934
 
 
   If the view include both union and constant, the query will thrown exception 
when it includes view.
   
   ```
   mysql> create view test as
       -> SELECT event_day,   'kpi_duration' AS `type` FROM 
`default_cluster:muse_db`.`test`
       -> UNION ALL
       -> SELECT event_day,  'kpi_dau_login' AS `type` FROM 
`default_cluster:muse_db`.`test` ;
   Query OK, 0 rows affected (0.02 sec)
   
   mysql> select type from test;
   ERROR 1064 (HY000): failed to build storage scanner, no materialized slot!
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to