I haven’t seen anything in documents or in the cod...
# replication-troubleshooting
s
I haven’t seen anything in documents or in the code itself, but is there any option to specify transaction isolation on MS SQL? I have a case where I need to read uncommitted or else risk locking the entire database while pulling data. If there is no locking issue due to some other mechanism (not a java expert here, just been weeding through code) please let me know because as it stands now the MSSQL DBA is saying airbyte is a non starter unless we can have it specify read uncommitted.
m
@Sam Kmetz do you have a sync log with the error or this is in the database side?
s
No error, just that it’s not an option to read uncommitted data. It’s more of a feature question vs acutely broken
w
can you make a view(s) of the mssql tables with read nolock option?
Sorry if its uncommited, could you write a Stored procedure in mssql that gets the uncommitted records with the transaction lock you need, and then return the results of that stored procedure in a view? Its a hacky workaround but could get you what you need. I havent used mssql in a while but I feel like i did something similar one time
s
@Walker Philips Yeah that’s something I’m considering. I was also looking to modify the source code itself to have it read uncommitted, but my java/docker abilities are eluding me. I also don’t control the source d
w
Ive only built Python connectors so far, for that same reason. You could potentially build a pretty simplistic Python connector that runs your custom query and then returns the results as a pandas dataframe. Maybe would take a week or two to get up to speed on the Airbyte nuances and then a day or two of actual work.
i followed this one, despite my connector not being an API one, https://docs.airbyte.com/connector-development/tutorials/cdk-tutorial-python-http/getting-started. The Docker commands really arent that bad. There's essentially only a single docker command you need to run so you can add it to the airbyte UI. The dockerfile was a bit of a pain though. I can point you in the right direction for getting the pyodbc/sqlalchemy driver loaded in for mssql and what the dockerfile looks like for that. JDBC was a no-go for my scenario.