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/10/12 08:59:59 UTC

[GitHub] [incubator-doris] EmmyMiao87 opened a new issue #4716: Failed to query constant which is in inline view

EmmyMiao87 opened a new issue #4716:
URL: https://github.com/apache/incubator-doris/issues/4716


   **Describe the bug**
   
   Situation: Select a constant column from inline view which includes at least one regular column.
   Query failed!
   
   ```
   MySQL [test]> select a from (select 'c1' a , k1 from test) a;
   ERROR 1064 (HY000): errCode = 2, detailMessage = failed to build storage scanner, no materialized slot!
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. create table 
   ```
   CREATE TABLE `test` (
     `k1` int(11) NULL COMMENT "",
     `k2` bigint(20) NULL COMMENT "",
     `k3` decimal(9, 0) NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`, `k2`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 10
   PROPERTIES (
   "replication_num" = "1",
   "in_memory" = "false",
   "storage_format" = "DEFAULT"
   );
   ```
   
   2. insert values
   
   ```
   insert into test values(2,2,2);
   ```
   
   3. query
   
   ```
   MySQL [test]> select a from (select 'c1' a , k1 from test) a;
   ERROR 1064 (HY000): errCode = 2, detailMessage = failed to build storage scanner, no materialized slot!
   ```
   
   **Expected behavior**
   
   ```
   +------+
   | a    |
   +------+
   | c1   |
   +------+
   ```
   
   If there are two lines in table, the result will be:
   
   ```
   +------+
   | a    |
   +------+
   | c1   |
   | c1   |
   +------+
   ```
   


----------------------------------------------------------------
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



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


[GitHub] [incubator-doris] morningman closed issue #4716: Failed to query constant which is in inline view

Posted by GitBox <gi...@apache.org>.
morningman closed issue #4716:
URL: https://github.com/apache/incubator-doris/issues/4716


   


----------------------------------------------------------------
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



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


[GitHub] [incubator-doris] EmmyMiao87 commented on issue #4716: Failed to query constant which is in inline view

Posted by GitBox <gi...@apache.org>.
EmmyMiao87 commented on issue #4716:
URL: https://github.com/apache/incubator-doris/issues/4716#issuecomment-740397272


   This two pr fix this problem. #4901 and #4719 


----------------------------------------------------------------
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



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


[GitHub] [incubator-doris] EmmyMiao87 commented on issue #4716: Failed to query constant which is in inline view

Posted by GitBox <gi...@apache.org>.
EmmyMiao87 commented on issue #4716:
URL: https://github.com/apache/incubator-doris/issues/4716#issuecomment-740396936


   #4901 


----------------------------------------------------------------
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



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


[GitHub] [incubator-doris] EmmyMiao87 edited a comment on issue #4716: Failed to query constant which is in inline view

Posted by GitBox <gi...@apache.org>.
EmmyMiao87 edited a comment on issue #4716:
URL: https://github.com/apache/incubator-doris/issues/4716#issuecomment-740397272


   Those two pr fix this problem. #4901 and #4719 . The #4719 did fix this issue but it brought a new problem which could cause the query result is error. So the #4901 fix the problem which #4719 included. 


----------------------------------------------------------------
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



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