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

   ### 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
   
   doris-0.0.0-trunk-36737fe
   
   ### What's Wrong?
   
   case 1:
   SQL: select 1, 2  union select 1.01, 2.0 union (select 0.0001, 0.0000001) 
order by 1, 2
   mysql result:
   +--------+-----------+
   | 1      | 2         |
   +--------+-----------+
   | 0.0001 | 0.0000001 |
   | 1.0000 | 2.0000000 |
   | 1.0100 | 2.0000000 |
   +--------+-----------+
   
   doris result:
   +------+-----------+
   | 1    | 2         |
   +------+-----------+
   |    0 | 0.0000001 |
   |    1 | 2.0000000 |
   |    1 | 2.0000000 |
   +------+-----------+
   
   
   
   
   
   
   case 2:
   SQL1:  select b.k1, b.k2, b.k3, b.k4, b.k5 from baseall a right anti join 
test b on a.k1 = b.k1 or a.k2 = b.k2 where b.k2 > 0 and b.k3 != 0 and b.k6 > 
"000" order by 1, 2, 3, 4, 5 limit 65535;
   SQL2: select b.k1, b.k2, b.k3, b.k4, b.k5 from baseall a right semi join 
test b on a.k1 = b.k1 or a.k2 = b.k2 where b.k2 > 0 and b.k3 != 0 and b.k6 > 
"000" order by 1, 2, 3, 4, 5 limit 65535;
   The results of each SQL query are different.
   
   table test row count 60015, table schema :
   +-------+--------------+------+-------+---------+-------+
   | Field | Type         | Null | Key   | Default | Extra |
   +-------+--------------+------+-------+---------+-------+
   | k1    | TINYINT      | Yes  | true  | NULL    |       |
   | k2    | SMALLINT     | Yes  | true  | NULL    |       |
   | k3    | INT          | Yes  | true  | NULL    |       |
   | k4    | BIGINT       | Yes  | true  | NULL    |       |
   | k5    | DECIMAL(9,3) | Yes  | true  | NULL    |       |
   | k6    | CHAR(5)      | Yes  | true  | NULL    |       |
   | k10   | DATE         | Yes  | true  | NULL    |       |
   | k11   | DATETIME     | Yes  | true  | NULL    |       |
   | k7    | VARCHAR(20)  | Yes  | true  | NULL    |       |
   | k8    | DOUBLE       | Yes  | false | NULL    | MAX   |
   | k9    | FLOAT        | Yes  | false | NULL    | SUM   |
   +-------+--------------+------+-------+---------+-------+
   
   table baseall row count 15, table schema:
   +-------+--------------+------+-----+---------+-------+
   | Field | Type         | Null | Key | Default | Extra |
   +-------+--------------+------+-----+---------+-------+
   | k1    | tinyint(4)   | YES  |     | NULL    |       |
   | k2    | smallint(6)  | YES  |     | NULL    |       |
   | k3    | int(11)      | YES  |     | NULL    |       |
   | k4    | bigint(20)   | YES  |     | NULL    |       |
   | k5    | decimal(9,3) | YES  |     | NULL    |       |
   | k6    | char(5)      | YES  |     | NULL    |       |
   | k10   | date         | YES  |     | NULL    |       |
   | k11   | datetime     | YES  |     | NULL    |       |
   | k7    | varchar(20)  | YES  |     | NULL    |       |
   | k8    | double       | YES  |     | NULL    |       |
   | k9    | float        | YES  |     | NULL    |       |
   +-------+--------------+------+-----+---------+-------+
   
   
   ### What You Expected?
   
   In case 1, doris result is same with mysql result.
   In case 2, the results of each SQL query are the same.
   
   ### How to Reproduce?
   
   _No response_
   
   ### 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