eldenmoon opened a new issue, #14537:
URL: https://github.com/apache/doris/issues/14537

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   master
   
   ### What's Wrong?
   
   Table is 
   ```
   CREATE TABLE `login_event` (
   `day` date NULL,
   `user_id` int(11) NULL
   ) ENGINE=OLAP
   DUPLICATE KEY(`day`, `user_id`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`user_id`) BUCKETS 16
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2",
   "disable_auto_compaction" = "false"
   );
   ```
   
   ```
   mysql> SELECT SUM(a.r[1]) as active_user_num_7day FROM ( SELECT user_id, 
retention( day = '2022-11-01', day = '2022-11-02', day = '2022-11-04', day = 
'2022-11-07') as r FROM login_event WHERE (day >= '2022-11-01') AND (day <= 
'2022-11-21') GROUP BY user_id ) a;
   **ERROR 1105 (HY000): errCode = 2, detailMessage = Unsupported type 
'ARRAY<NULL_TYPE>' in '`a`.`r`'.**
   ```
   
   ### What You Expected?
   
   no error
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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