-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create s3 failed #8421
Comments
Looks to be a regression introduced by #7390 Specifically: Can probably relax this strict check to allow unknown keys since they could be used for other stuff, like S3 object store Same could potentially be done for JSON and CSV too: |
@Jefffrey I also located this issue,However, I think this kind of testing is unreasonable and restrictions should be relaxed |
The reason for the strict checking is to help identify typos or logical errors easily in SQL queries rather than silently ignoring invalid options. Given that datafusion-cli is using the same data structure to store additional options, there are a few options:
I favor one of the first two options, but the third may be the best if we expect this problem to crop up beyond datafusion-cli. The question would be if it is likely for many downstream projects to inject additional options passed to a ListingTable or CopyTo statement. |
Here is a quick draft PR that implements option 2. Let me know if this branch solves your issue. I'll try to get some time to verify with a real S3 bucket myself in the next day or two. #8426 |
BTW it would be great if someone could write a regression test in datafusion-cli somehow so this functionality is not broken again (@web3creator is this something you could potentially help with?) |
Thanks everyone for the quick fix |
Describe the bug
datafusion-cli
❯ CREATE EXTERNAL TABLE test
STORED AS PARQUET
OPTIONS(
'region' 'xxx',
'access_key_id' 'xxxx',
'secret_access_key' 'xxxx'
)
LOCATION 'xxxxx';
Invalid or Unsupported Configuration: Found unsupported option access_key_id with value xxxx for Parquet format!
❯
To Reproduce
datafusion-cli
Expected behavior
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: