- 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 ofLatin1_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]]]