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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group