You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2020/04/16 07:10:41 UTC
[GitHub] [incubator-doris] EmmyMiao87 commented on issue #3331: query
against view failed when the view contains union
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:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org