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
{{ message }}
Repository navigation
Stop changing the case for COPY TO option values #10853
How has such an issue typically been resolved previously? If adding a ParseOptions, e.g., enable_options_value_normalization, is a reasonable way to fix it, I could help there.
I believe we can remove the lowercase conversion here and instead add it when we set ConfigField's (via alter_with_string_hash_map) for the cases where we can ignore case sensitivity.
If no one else is working on this issue, I'll take it. My plan is to remove the automatic conversion of values to lowercase and to create a lookup table for keys. This table will indicate the specific standardization methods.
Another potential option is to follow the model of the datafusion.sql_parser.enable_ident_normalizationconfiguration setting to control if the options should be case sensitive or not. That might be the "least surprising" to people who are used (or not used) to SQL identifier normalization rules
I don't remember wll the usecases for configuration option case sensitivity, so please ignore this suggestion if it doesn't make sense
Activity
alamb commentedon Jun 10, 2024
fyi @metesynnada
xinlifoobar commentedon Jun 11, 2024
Sorry if I mislead you. I encountered this issue in the
CREATE EXTERNAL TABLEstatement asdatafusion/datafusion/sql/src/statement.rs
Lines 1017 to 1025 in 3773fb7
How has such an issue typically been resolved previously? If adding a
ParseOptions, e.g.,enable_options_value_normalization, is a reasonable way to fix it, I could help there.datafusion/datafusion/sql/src/planner.rs
Lines 97 to 100 in 47026a2
berkaysynnada commentedon Jun 11, 2024
I believe we can remove the lowercase conversion here and instead add it when we set
ConfigField's (viaalter_with_string_hash_map) for the cases where we can ignore case sensitivity.berkaysynnada commentedon Jul 3, 2024
If no one else is working on this issue, I'll take it. My plan is to remove the automatic conversion of values to lowercase and to create a lookup table for keys. This table will indicate the specific standardization methods.
alamb commentedon Jul 5, 2024
Another potential option is to follow the model of the
datafusion.sql_parser.enable_ident_normalizationconfiguration setting to control if the options should be case sensitive or not. That might be the "least surprising" to people who are used (or not used) to SQL identifier normalization rulesI don't remember wll the usecases for configuration option case sensitivity, so please ignore this suggestion if it doesn't make sense
xinlifoobar commentedon Jul 8, 2024
I draft #11330 to discuss this. Let me know your thoughts!