I am new to synapse and I am trying to create a synapse view from a delta table using openrow set.
Getting the error Duplicate column ordinal cannot be provided in WITH schema clause Not sure why I should see this error, I am not using any with clause and I guess with clause if not specified picks all cols.
create or ALTER view testView
SELECT CAST(abc AS nvarchar(255)) AS abc,
CAST(def AS nvarchar(255)) AS def,
CAST(Date1 AS datetime) AS DateJoined --this is a timestamp col in delta table
FROM
OPENROWSET( BULK 'tablename', DATA_SOURCE = 'datasource', FORMAT='DELTA') AS m