Closed Alonkad closed 8 months ago
Hi @Alonkad ,
One way I think you can work around this error is to configure your connection use CDC, which will override this cursor check. If I can as you to please attach the full log. Thanks
I reached out also on slack.
Hey @rodireich,
Thanks for looking into this issue.
Unfortunately CDC is not possible in our use-case for two reasons: a. I'm not the owner of the source DWH, so I can't turn it on.
b. We're pulling data from views (prepared for us by the owner of the DWH), and I believe CDC doesn't work on views.
The change you suggested seems trivial and is supported by all sql servers.
Unlike the IIF
command which is not available on Azure Synapse Analytics
Connector Name
source-mssql
Connector Version
1.1.1
What step the error happened?
During the sync
Revelant information
We have a connection set up to do daily incremental appends which works perfectly. Now the DB is migrated to Azure Synapse Analytics. While the MSSQL source connector declares it supports Synapse, we’ve encountered the following issue:
When incremental sync mode is used - the connector will run the following query to verify that the cursor column doesn’t contain NULL values:
SELECT CAST(IIF(EXISTS(SELECT TOP 1 1 FROM "%s"."%s" WHERE "%s" IS NULL), 1, 0) AS BIT) AS nullvalue
The problem is that regular MSSQL DB runs this query while on Synapse there’s a syntax error (as shown in the screenshots).We can’t tell AirByte to avoid or skip this check and we can’t modify the query to be able to run on Synapse, for example:
SELECT CASE WHEN (SELECT TOP 1 1 FROM "%s"."%s" WHERE "%s" IS NULL)=1 then 1 else 0 end as nullvalue
Relevant log output
Contribute