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

   ### 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
   
   2.1.3
   
   ### What's Wrong?
   
   From https://doris.apache.org/docs/sql-manual/sql-types/Data-Types/BIGINT/:
   > BIGINT 8-byte signed integer, range [-9223372036854775808, 
9223372036854775807]
   
   
   
   ### What You Expected?
   
   Given a table with a bigint column. We have 1 row with value 1
   ```
   CREATE TABLE t1(c0 BIGINT NOT NULL) DISTRIBUTED BY RANDOM  PROPERTIES 
("replication_num" = "1");
   INSERT INTO t1 (c0) VALUES (1);
   ``` 
   
   
   This returns true:
   `SELECT (NOT (9223372036854775807<= t1.c0)) from t1;`
   
   This does not return any rows:
   `SELECT t1.c0 FROM t1 WHERE (NOT (9223372036854775807<= t1.c0)) ;`
   
   
   This returns true:
   `SELECT (NOT (-9223372036854775808 >= t1.c0)) from t1;`
   
   This does not return any rows:
   `SELECT t1.c0 FROM t1 WHERE (NOT (9223372036854775807<= t1.c0)) ;`
   
   
   ### How to Reproduce?
   
   ```
   DROP DATABASE IF EXISTS doris0;
   CREATE DATABASE doris0;
   USE doris0;
   CREATE TABLE t1(c0 BIGINT NOT NULL) DISTRIBUTED BY RANDOM  PROPERTIES 
("replication_num" = "1");
   INSERT INTO t1 (c0) VALUES (1);
   
   SELECT (NOT (9223372036854775807<= t1.c0)) from t1;
   SELECT t1.c0 FROM t1 WHERE (NOT (9223372036854775807<= t1.c0)) ;
   
   SELECT (NOT (-9223372036854775808 >= t1.c0)) from t1;
   SELECT t1.c0 FROM t1 WHERE (NOT (9223372036854775807<= t1.c0)) ;
   ```
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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-unsubscr...@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to