spark-instrumented-optimizer/sql/catalyst/src/main
Xiao Li 55bea56911 [SPARK-20156][SQL][FOLLOW-UP] Java String toLowerCase "Turkish locale bug" in Database and Table DDLs
### What changes were proposed in this pull request?
Database and Table names conform the Hive standard ("[a-zA-z_0-9]+"), i.e. if this name only contains characters, numbers, and _.

When calling `toLowerCase` on the names, we should add `Locale.ROOT` to the `toLowerCase`for avoiding inadvertent locale-sensitive variation in behavior (aka the "Turkish locale problem").

### How was this patch tested?
Added a test case

Author: Xiao Li <gatorsmile@gmail.com>

Closes #17655 from gatorsmile/locale.
2017-04-20 11:13:48 +01:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-19518][SQL] IGNORE NULLS in first / last in SQL 2017-04-10 17:45:27 +02:00
java/org/apache/spark/sql [SPARK-20057][SS] Renamed KeyedState to GroupState in mapGroupsWithState 2017-03-22 12:30:36 -07:00
scala/org/apache/spark/sql [SPARK-20156][SQL][FOLLOW-UP] Java String toLowerCase "Turkish locale bug" in Database and Table DDLs 2017-04-20 11:13:48 +01:00