You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/08/25 01:13:23 UTC

[GitHub] [spark] linhongliu-db opened a new pull request, #37651: [SPARK-40213][SQL] Support ASCII value conversion for Latin-1 characters

linhongliu-db opened a new pull request, #37651:
URL: https://github.com/apache/spark/pull/37651

   ### What changes were proposed in this pull request?
   This PR proposes to support ASCII value conversion for Latin-1 Supplement characters.
   
   ### Why are the changes needed?
   `ascii()` should be the inverse of `chr()`. But for latin-1 char, we get incorrect ascii value. For example:
   ```sql
   select ascii('§') -- output: -62, expect: 167
   select chr(167) -- output: '§'
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, fixes the incorrect ASCII conversion for Latin-1 Supplement characters
   
   ### How was this patch tested?
   UT
   


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] linhongliu-db commented on pull request #37651: [SPARK-40213][SQL] Support ASCII value conversion for Latin-1 characters

Posted by GitBox <gi...@apache.org>.
linhongliu-db commented on PR #37651:
URL: https://github.com/apache/spark/pull/37651#issuecomment-1226660283

   cc @cloud-fan 


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon commented on pull request #37651: [SPARK-40213][SQL] Support ASCII value conversion for Latin-1 characters

Posted by GitBox <gi...@apache.org>.
HyukjinKwon commented on PR #37651:
URL: https://github.com/apache/spark/pull/37651#issuecomment-1226755439

   Merged to master, branch-3.3, branch-3.2 and branch-3.1.


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] [spark] HyukjinKwon closed pull request #37651: [SPARK-40213][SQL] Support ASCII value conversion for Latin-1 characters

Posted by GitBox <gi...@apache.org>.
HyukjinKwon closed pull request #37651: [SPARK-40213][SQL] Support ASCII value conversion for Latin-1 characters
URL: https://github.com/apache/spark/pull/37651


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org