-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Currently, we're changing the case of every option value passed with the COPY statement:
datafusion/datafusion/sql/src/statement.rs
Lines 891 to 900 in 3773fb7
| if !(&key.contains('.')) { | |
| // If config does not belong to any namespace, assume it is | |
| // a format option and apply the format prefix for backwards | |
| // compatibility. | |
| let renamed_key = format!("format.{}", key); | |
| options.insert(renamed_key.to_lowercase(), value_string.to_lowercase()); | |
| } else { | |
| options.insert(key.to_lowercase(), value_string.to_lowercase()); | |
| } | |
| } |
This causes an issue in cases where the option values for some external integrations might be case sensitive (eg. like access keys).
@xinlifoobar found this while working on adding an integration to huggingface in #10792.
See previous discussion here: #9723 (comment)
To Reproduce
No response
Expected behavior
There should be some way to pass option values as is for certain integrations.
Additional context
No response
xinlifoobar
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working