cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

External table from external location

210227
New Contributor III

Hi, 

I'm creating external table from existing external location and am a bit puzzled as to what permissions I need for it or what is the correct way of defining the S3 path with wildcards. 

This:

create external table if not exists test_catalogue_dev.bronze.test_external
using csv
location 's3://test-data/full/2023/01/*/'
OPTIONS(
recursiveFileLookup "true",
ignoreExtension "true",
infereSchema "true"
)
returns java.nio.file.AccessDeniedException, yet:

 

create external table if not exists test_catalogue_dev.bronze.test_external
using csv
location 's3://test-data/full/2023/01/01/'
OPTIONS(
recursiveFileLookup "true",
ignoreExtension "true",
infereSchema "true"
)
happily creates one. 
Is  using a wildcard trying to put something in the external bucket? 
1 ACCEPTED SOLUTION

Accepted Solutions

210227
New Contributor III

Just for the reference, the wildcard is not needed in this case, just a misleading error message. In this case 's3://test-data/full/2023/01/' instead of 's3://test-data/full/2023/01/*/' was the correct PATH

View solution in original post

1 REPLY 1

210227
New Contributor III

Just for the reference, the wildcard is not needed in this case, just a misleading error message. In this case 's3://test-data/full/2023/01/' instead of 's3://test-data/full/2023/01/*/' was the correct PATH

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!