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/22 07:46:58 UTC

[GitHub] [doris] Gabriel39 opened a new issue, #13573: [Bug] Inconsistent behavior for string comparison in FE and BE

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

   ### 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
   
   master
   
   ### What's Wrong?
   
   In FE, when constant folding rule is applied, '汇总' is always less than '2022-01-01'.
   ![image](https://user-images.githubusercontent.com/37700562/197327290-0dafab90-054f-45ca-8ef9-4ac572641be1.png)
   
   But when I send a sorting sql which runs a sorting in BE, the result is contrary.
   ![image](https://user-images.githubusercontent.com/37700562/197327389-08d37ab2-745d-4c60-9b2e-73ed9113cd16.png)
   
   
   ### What You Expected?
   
   FE should keep the same logic as BE.
   
   ### 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-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] nextdreamblue commented on issue #13573: [Bug] Inconsistent behavior for string comparison in FE and BE

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

   be中,字符串的比较是基于utf8的编码,按字节比较,字节是基于uint8
   fe中,java基于signed byte
   导致be中fe中,编码值对应的数字值不同导致排序不同


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


[GitHub] [doris] Gabriel39 closed issue #13573: [Bug] Inconsistent behavior for string comparison in FE and BE

Posted by GitBox <gi...@apache.org>.
Gabriel39 closed issue #13573: [Bug] Inconsistent behavior for string comparison in FE and BE
URL: https://github.com/apache/doris/issues/13573


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