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/01/25 09:37:10 UTC

[GitHub] [incubator-doris] qidaye opened a new issue #7887: [Bug] Alias function `digital_masking` result is wrong

qidaye opened a new issue #7887:
URL: https://github.com/apache/incubator-doris/issues/7887


   ### 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
   
   ee0037e1af504e6945c3a5d0578f4a945f7e3f8f
   
   ### What's Wrong?
   
   ```sql
   mysql> select digital_masking(13012345678);
   +-------------------------+
   | digital_masking(13012345678) |
   +-------------------------+
   | 127****3790             |
   +-------------------------+
   ```
   
   ### What You Expected?
   
   ```sql
   mysql> select digital_masking(13012345678);
   +------------------------------+
   | digital_masking(13012345678) |
   +------------------------------+
   | 130****5678                  |
   +------------------------------+
   ```
   
   ### How to Reproduce?
   
   See above.
   
   ### Anything Else?
   
   The default function arg in `digital_masking` is `INT`, which range is [-2147483648, 2147483647].
   The reason of this wrong result is that the number `13012345678` is out of the range.
   
   ### 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

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 closed issue #7887: [Bug] Alias function `digital_masking` result is wrong

Posted by GitBox <gi...@apache.org>.
morningman closed issue #7887:
URL: https://github.com/apache/incubator-doris/issues/7887


   


-- 
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 closed issue #7887: [Bug] Alias function `digital_masking` result is wrong

Posted by GitBox <gi...@apache.org>.
morningman closed issue #7887:
URL: https://github.com/apache/incubator-doris/issues/7887


   


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