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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]