We have requirement to load the data from ADLS delta data into synapse table. actually, we are writing the delta format data into ADLS gen2 from databricks. now we want to load the data from ADLS gen2(with delta table) to synapse table delta table. below steps we followed to create table but we are getting issues.
CREATE EXTERNAL FILE FORMAT DeltaFileFormat
WITH (
FORMAT_TYPE = DELTA
);
CREATE EXTERNAL DATA SOURCE test_data_source
WITH
( LOCATION = 'abfss://container@storage.dfs.core.windows.net/table_metadata/testtable'
--,CREDENTIAL = <database scoped credential>
);
CREATE EXTERNAL TABLE testtable (
job_id int,
source_type varchar(10),
server_name varchar(10),
database_name varchar(15),
table_name varchar(20),
custom_query varchar(100),
source_location varchar(500),
job_timestamp datetime2,
job_user varchar(50)
) WITH (
LOCATION = 'abfss://targetcontainer@targetstorage.dfs.core.windows.net/table_metadata/testtable',
data_source = test_data_source,
FILE_FORMAT = DeltaFileFormat
);
select * from testtable;
while query select statement, below issues throwing exception.
Content of directory on path 'https://container@storage.dfs.core.windows.net_delta_log/.' cannot be listed.