You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did a quick scan of the calls to String.toLowerCase() in Iceberg codebase, and I do a few places where it may be a concern:
VectorizedSupport seems like it may be a problem, but I do not really know whether the lower case data is exposed and how.
IcebergRecordObjectInspector converts field names to lower case, and that seems to be affected by the locale problem as various case names are accepted as input parameters to its methods.
jQuery code uses a lot of toLowerCase(), but I do not really know how it is supposed to be used.
To the best of my knowledge this kind of case conversion can be problematic only in German and Turkish locales. The German locale affects only proper German language words (so it is less of a problem), but the Turkish locale can cause English words to be converted in unexpected ways.
For example, this assertion fails: assertThat("VIEW".toLowerCase(new Locale("TR"))).isEqualTo("view");
Does Iceberg support using its libraries in user-defined locales?
The text was updated successfully, but these errors were encountered:
Query engine
ALL
Question
This stemmed from a discussion thread on PR 8909:
I did a quick scan of the calls to
String.toLowerCase()
in Iceberg codebase, and I do a few places where it may be a concern:VectorizedSupport seems like it may be a problem, but I do not really know whether the lower case data is exposed and how.
IcebergRecordObjectInspector converts field names to lower case, and that seems to be affected by the locale problem as various case names are accepted as input parameters to its methods.
jQuery
code uses a lot oftoLowerCase()
, but I do not really know how it is supposed to be used.To the best of my knowledge this kind of case conversion can be problematic only in German and Turkish locales. The German locale affects only proper German language words (so it is less of a problem), but the Turkish locale can cause English words to be converted in unexpected ways.
For example, this assertion fails:
assertThat("VIEW".toLowerCase(new Locale("TR"))).isEqualTo("view");
Does Iceberg support using its libraries in user-defined locales?
The text was updated successfully, but these errors were encountered: