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 2019/11/04 06:26:41 UTC

[GitHub] [incubator-doris] zhangy5 opened a new issue #2123: If the parameter of ifnull is datetime, return wrong type

zhangy5 opened a new issue #2123: If the parameter of ifnull is datetime, return wrong type
URL: https://github.com/apache/incubator-doris/issues/2123
 
 
   **Describe the bug**
   If the parameter of ifnull is datetime, return wrong type.
   
   **To Reproduce**
   query is: select ifnull(b.k10, cast("2017-06-06" as date)) k, b.k1 from baseall a left join bigtable b on a.k1 = b.k1 + 5 order by k
   k returns a long type as  follows.
   
   ![image](https://user-images.githubusercontent.com/10826066/68102607-76d7f400-ff0e-11e9-88d7-a750c96ebad0.png)
   
   table schema:
   CREATE TABLE `baseall` (
     `k1` tinyint(4) NOT NULL COMMENT "",
     `k2` smallint(6) NOT NULL COMMENT "",
     `k3` int(11) NOT NULL COMMENT "",
     `k4` bigint(20) NOT NULL COMMENT "",
     `k5` decimal(9, 3) NOT NULL COMMENT "",
     `k6` char(5) NOT NULL COMMENT "",
     `k10` date NOT NULL COMMENT "",
     `k11` datetime NOT NULL COMMENT "",
     `k7` varchar(20) NOT NULL COMMENT "",
     `k8` double MAX NOT NULL COMMENT "",
     `k9` float SUM NOT NULL COMMENT ""
   ) ENGINE=OLAP
   AGGREGATE KEY(`k1`, `k2`, `k3`, `k4`, `k5`, `k6`, `k10`, `k11`, `k7`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 5
   PROPERTIES (
   "storage_type" = "COLUMN"
   );
   baseall table is same with bigtable.
   
   **Expected behavior**
   expected result:
   ![image](https://user-images.githubusercontent.com/10826066/68102633-953def80-ff0e-11e9-8305-035ccf4c8c3b.png)
   

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