Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/17655#discussion_r111770874
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
---
@@ -114,14 +114,14 @@ class SessionCatalog(
* Format table name, taking into account case sensitivity.
*/
protected[this] def formatTableName(name: String): String = {
- if (conf.caseSensitiveAnalysis) name else name.toLowerCase
+ if (conf.caseSensitiveAnalysis) name else name.toLowerCase(Locale.ROOT)
--- End diff --
We have the restrictions on database/table names. That is, the names only
contain characters, numbers, and _.
Without the fixe in this PR, users are not allowed to read/write/create a
table whose name containing `I`, because `toLowerCase` will convert it to `ı`
when the locale is `tr`. The names become illegal. Is my understanding right?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]