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/05 07:35:46 UTC

[GitHub] [incubator-doris] kangpinghuang opened a new issue #2130: query failed for in predicate

kangpinghuang opened a new issue #2130: query failed for in predicate
URL: https://github.com/apache/incubator-doris/issues/2130
 
 
   case:
   
   table:
   CREATE TABLE `test` (
     `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"
   PARTITION BY RANGE(`k1`)
   (PARTITION p1 VALUES [("-128"), ("-64")),
   PARTITION p2 VALUES [("-64"), ("0")),
   PARTITION p3 VALUES [("0"), ("64")),
   PARTITION p4 VALUES [("64"), (MAXVALUE)))
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "storage_type" = "COLUMN",
   "replication_num" = "1"
   );
   
   query:
   mysql> select k2 from test where k2 in (163) limit 10;
   +------+
   | k2   |
   +------+
   |  163 |
   |  163 |
   +------+
   2 rows in set (0.01 sec)
   
   mysql> select k2 from test where k2 in (113) limit 10;
   +------+
   | k2   |
   +------+
   |  113 |
   |  113 |
   +------+
   2 rows in set (0.02 sec)
   
   mysql> select k2 from test where k2 in (113, 163) limit 10;
   Empty set (0.02 sec)
   
   this query returns invalid result.
   

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