'Invalid object name' for case sensitive database

  • Is this your first time deploying Airbyte?: No
  • OS Version / Instance: Local MacOS (for testing)
  • Memory / Disk: you can use something like 32Gb / 1 Tb
  • Deployment: Docker
  • Airbyte Version: What version are you using now? 0.42
  • Source name/version: snowflake/0.1.31
  • Destination name/version: mssql/0.1.22
  • Step: The issue is happening during initial sync but after connection.
  • Description: I see in the logs that the Snowflake data is ingested fine. When airbyte attempts to create the destination table it introspects the database using information_schema.tables. This particular database has a collation of Latin1_General_BIN which is case sensitive.

select * DESTINATION_DB.information_schema.tables;
This fails because of the lowercase values. The query needs to be uppercase like so:
select * DESTINATION_DB.INFORMATION_SCHEMA.TABLES;

Error message from log:

2023-03-14 18:58:28 ERROR i.a.w.g.DefaultNormalizationWorker(run):86 - Normalization failed for job 1.

io.airbyte.workers.exception.WorkerException: Normalization process did not terminate normally (exit code: 2)

at io.airbyte.workers.normalization.DefaultNormalizationRunner.close(DefaultNormalizationRunner.java:205) ~[io.airbyte-airbyte-commons-worker-0.42.0.jar:?]

at io.airbyte.workers.general.DefaultNormalizationWorker.run(DefaultNormalizationWorker.java:84) ~[io.airbyte-airbyte-commons-worker-0.42.0.jar:?]

at io.airbyte.workers.general.DefaultNormalizationWorker.run(DefaultNormalizationWorker.java:37) ~[io.airbyte-airbyte-commons-worker-0.42.0.jar:?]

at io.airbyte.workers.temporal.TemporalAttemptExecution.lambda$getWorkerThread$6(TemporalAttemptExecution.java:202) ~[io.airbyte-airbyte-workers-0.42.0.jar:?]

at java.lang.Thread.run(Thread.java:1589) ~[?:?]

2023-03-14 18:58:28 INFO i.a.w.g.DefaultNormalizationWorker(run):97 - Normalization executed in 2 minutes 28 seconds for job 1.

2023-03-14 18:58:28 INFO i.a.w.g.DefaultNormalizationWorker(run):109 - Normalization summary: io.airbyte.config.NormalizationSummary@3dc5551a[startTime=1678820160264,endTime=1678820308907,failures=[io.airbyte.config.FailureReason@32ed8284[failureOrigin=normalization,failureType=system_error,internalMessage=(‘42S02’, “[42S02] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name ‘AAD.information_schema.tables’. (208) (SQLExecDirectW)”),externalMessage=Normalization failed during the dbt run. This may indicate a problem with the data itself.,metadata=io.airbyte.config.Metadata@738fcab[additionalProperties={attemptNumber=0, jobId=1, from_trace_message=true}],stacktrace=AirbyteDbtError:

Encountered an error:

Database Error

(‘42S02’, “[42S02] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name ‘AAD.information_schema.tables’. (208) (SQLExecDirectW)”),retryable=,timestamp=1678820308749], io.airbyte.config.FailureReason@3ca2b1dd[failureOrigin=normalization,failureType=system_error,internalMessage=(‘42S02’, “[42S02] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name ‘AAD.information_schema.tables’. (208) (SQLExecDirectW)”),externalMessage=Normalization failed during the dbt run. This may indicate a problem with the data itself.,metadata=io.airbyte.config.Metadata@2bd85ed6[additionalProperties={attemptNumber=0, jobId=1, from_trace_message=true}],stacktrace=AirbyteDbtError:

Encountered an error:

Database Error

(‘42S02’, “[42S02] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name ‘AAD.information_schema.tables’. (208) (SQLExecDirectW)”),retryable=,timestamp=1678820308749]]]

Hello there! You are receiving this message because none of your fellow community members has stepped in to respond to your topic post. (If you are a community member and you are reading this response, feel free to jump in if you have the answer!) As a result, the Community Assistance Team has been made aware of this topic and will be investigating and responding as quickly as possible.
Some important considerations that will help your to get your issue solved faster:

  • It is best to use our topic creation template; if you haven’t yet, we recommend posting a followup with the requested information. With that information the team will be able to more quickly search for similar issues with connectors and the platform and troubleshoot more quickly your specific question or problem.
  • Make sure to upload the complete log file; a common investigation roadblock is that sometimes the error for the issue happens well before the problem is surfaced to the user, and so having the tail of the log is less useful than having the whole log to scan through.
  • Be as descriptive and specific as possible; when investigating it is extremely valuable to know what steps were taken to encounter the issue, what version of connector / platform / Java / Python / docker / k8s was used, etc. The more context supplied, the quicker the investigation can start on your topic and the faster we can drive towards an answer.
  • We in the Community Assistance Team are glad you’ve made yourself part of our community, and we’ll do our best to answer your questions and resolve the problems as quickly as possible. Expect to hear from a specific team member as soon as possible.

Thank you for your time and attention.
Best,
The Community Assistance Team