[
https://issues.apache.org/jira/browse/SPARK-46542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun resolved SPARK-46542.
-----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 44533
[https://github.com/apache/spark/pull/44533]
> Remove the check for `c>=0` from `ExternalCatalogUtils#needsEscaping`
> ---------------------------------------------------------------------
>
> Key: SPARK-46542
> URL: https://issues.apache.org/jira/browse/SPARK-46542
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Yang Jie
> Assignee: Yang Jie
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
>
> {code:java}
> def needsEscaping(c: Char): Boolean = {
> c >= 0 && c < charToEscape.size() && charToEscape.get(c)
> } {code}
>
>
> The numerical range of Char in Scala is from 0 to 65,535, so `c>=0` is always
> true.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]