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


   **Describe the bug**
   ```
   mysql> desc select * from tbl1 left join tbl3 on tbl1.k1 = tbl3.k1 where 
tbl3.k1  in ('abc');
   ERROR 5012 (HY000): errCode = 2, detailMessage = Unexpected exception: 
org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = 'abc' 
is not a number
   ```
   
   **To Reproduce**
   ```
   CREATE TABLE `tbl1` (
     `k1` int(11) NULL COMMENT "",
     `k2` int(11) NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`, `k2`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_num" = "1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   
   CREATE TABLE `tbl3` (
     `k1` varchar(32) NULL COMMENT "",
     `k2` int(11) NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_num" = "1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   
   insert into tbl1 values(3,4);
   insert into tbl3 values("abc",4);
   
   select * from tbl1 join tbl3 on tbl1.k1 = tbl3.k1 where tbl3.k1  in ('abc');
   ```
   
   **Expected behavior**
   Not throw error
   


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to