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 2022/10/12 10:28:58 UTC

[GitHub] [doris] alenfive opened a new issue, #13325: 自动类型转换无法正确应对bigint数据类型[Bug]

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

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   0.15.0-rc04
   
   ### What's Wrong?
   
   ```
   CREATE TABLE `tb1` (
     `user_id` String NULL COMMENT ""
   ) ENGINE=OLAP
   DUPLICATE KEY(`user_id`)
   COMMENT "OLAP"
   DISTRIBUTED BY HASH(`user_id`) BUCKETS 8
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1",
   "in_memory" = "false",
   "storage_format" = "V2"
   );
   
   ```
   `insert into tb1(user_id) values("100"),("8423105223472332825")`
   
   表设计定义user_id字段为字符类型,对20位的bigint (雪花算法生成的ID)查询不加引号,数据无法得取正确的返回
   
   执行操作:
   `select * from tb1 where user_id=100`
   正确返回
   
   执行操作:
   `select * from tb1 where user_id=8423105223472332825`
   无数据返回
   
   
   
   
   
   ### What You Expected?
   
   类型自动转换,支持bigint类型数据
   
   ### 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: commits-unsubscribe@doris.apache.org.apache.org

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] [doris] LemonLiTree commented on issue #13325: 自动类型转换无法正确应对bigint数据类型[Bug]

Posted by GitBox <gi...@apache.org>.
LemonLiTree commented on issue #13325:
URL: https://github.com/apache/doris/issues/13325#issuecomment-1276078415

   默认是转double来做匹配的,如果精度超了就会出现结果不准确的


-- 
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: commits-unsubscribe@doris.apache.org

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