Create external table using multiple paths/locations
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 02:30 PM
I want to create an external table from more than a single path. I have configured my storage creds and added an external location, and I can successfully create a table using the following code;
create table test.base.Example
using csv
options (
header = "true"
)
location 'abfss://test@exampleblob.dfs.core.windows.net/2022/08/data/'But I have lots of data partitioned by month and date so I'm wondering if there is anyway to import data from multiple paths using wildcards or something similar as outlined in the code below?
create table test.base.Example
using csv
options (
header = "true"
)
location 'abfss://test@exampleblob.dfs.core.windows.net/*/*/data/'Many thanks
Tim