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
Strict check of the s3 directory object content type. #20310
Comments
Was able to reproduce the above. S3 Browser when uploading folders of data also creates directories with |
cc : @imjalpreet @agrawalreetika for visibility |
It would be great to relax the content type requirement for the folder here: https://github.com/prestodb/presto/blob/master/presto-hive/src/main/java/com/facebook/presto/hive/s3/PrestoS3FileSystem.java#L374C31-L374C31
Currently as I understand databricks unity creates the directory s3 objects with
application/octet-stream
metadata, notapplication/x-directory
and that leads to the failure of creating the external delta tables and accessing those through presto.Presto error msg:
presto error: External location must be a directory
I've confirmed that it is a root cause via copying the directory object and changing it's content type. Doing that and copying other files to it results in a successful creation of the external table and ability to query it.
Example
The text was updated successfully, but these errors were encountered: