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/02/07 09:27:07 UTC
[GitHub] [incubator-doris] yangzhg opened a new pull request #7963: [fix] fix ltrim result may incorrect in some case
yangzhg opened a new pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963
# Proposed changes
Issue Number: close #xxx
## Problem Summary:
fix ltrim result may incorrect in some case
according to https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html
Built-in Function: int __builtin_cl/tz (unsigned int x)
If x is 0, the result is undefined.
So we handle the case of 0 separately
this function return different between gcc and clang when x is 0
## Checklist(Required)
1. Does it affect the original behavior: (Yes)
2. Has unit tests been added: (Yes)
3. Has document been added or modified: (No Need)
4. Does it need to update dependencies: (No)
5. Are there any changes that cannot be rolled back: (No)
## Further comments
If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
--
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] [incubator-doris] xinghuayu007 commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
xinghuayu007 commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1032125769
LGTM
--
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] [incubator-doris] xinghuayu007 commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
xinghuayu007 commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1031266485
please add some unit tests for case: __builtin_cl/tz (0)
--
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] [incubator-doris] yangzhg commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
yangzhg commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1031303677
> Similar fixes has been done in #7712 , which was caught by current unit tests. It's an indication that test coverage should be improved.
I see, this is in another function, we may merge the those implements together
--
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] [incubator-doris] amosbird commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
amosbird commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1031296824
Similar fixes has been done in https://github.com/apache/incubator-doris/pull/7712 , which was caught by current unit tests. It's an indication that test coverage should be improved.
--
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] [incubator-doris] morningman merged pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
morningman merged pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963
--
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] [incubator-doris] yangzhg commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
yangzhg commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1031321816
> Similar fixes has been done in #7712 , which was caught by current unit tests. It's an indication that test coverage should be improved.
Fix in #7712 will add an offset of 128 when mask is 0, but offset is 32 when mask is 0 in this pr, I not sure 128 is a correct value @amosbird ?
--
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] [incubator-doris] github-actions[bot] commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1032146820
--
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] [incubator-doris] yangzhg commented on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
yangzhg commented on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1031301230
> please add some unit tests for case: __builtin_cl/tz (0)
Unit test has already contained this situation
--
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] [incubator-doris] yangzhg removed a comment on pull request #7963: [fix] fix ltrim result may incorrect in some case
Posted by GitBox <gi...@apache.org>.
yangzhg removed a comment on pull request #7963:
URL: https://github.com/apache/incubator-doris/pull/7963#issuecomment-1031321816
> Similar fixes has been done in #7712 , which was caught by current unit tests. It's an indication that test coverage should be improved.
Fix in #7712 will add an offset of 128 when mask is 0, but offset is 32 when mask is 0 in this pr, I not sure 128 is a correct value @amosbird ?
--
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