Source MSSQL: verifyCursorColumnValues query doesn't run on Azure Synapse Analytics #30642
Closed
1 task
Labels
area/connectors
Connector related issues
community
connectors/source/mssql
connectors/sources-database
releaseStage/alpha
team/connectors-python
type/bug
Something isn't working
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
The text was updated successfully, but these errors were encountered: