From c537e376dee207ab308726ab51e3dcbd2f859587 Mon Sep 17 00:00:00 2001 From: chte Date: Thu, 9 Mar 2023 02:25:37 +0100 Subject: [PATCH] Azure Synapse Compatibility (#18294) Integration tests for destionation-mssql are broken and I verified other CI checks on this PR: https://github.com/airbytehq/airbyte/pull/23851 --- .../integrations/destination/mssql/SqlServerOperations.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airbyte-integrations/connectors/destination-mssql/src/main/java/io/airbyte/integrations/destination/mssql/SqlServerOperations.java b/airbyte-integrations/connectors/destination-mssql/src/main/java/io/airbyte/integrations/destination/mssql/SqlServerOperations.java index 87869107b0f9..f06880776635 100644 --- a/airbyte-integrations/connectors/destination-mssql/src/main/java/io/airbyte/integrations/destination/mssql/SqlServerOperations.java +++ b/airbyte-integrations/connectors/destination-mssql/src/main/java/io/airbyte/integrations/destination/mssql/SqlServerOperations.java @@ -35,7 +35,7 @@ public String createTableQuery(final JdbcDatabase database, final String schemaN "IF NOT EXISTS (SELECT * FROM sys.tables t JOIN sys.schemas s ON t.schema_id = s.schema_id " + "WHERE s.name = '%s' AND t.name = '%s') " + "CREATE TABLE %s.%s ( \n" - + "%s VARCHAR(64) PRIMARY KEY,\n" + + "%s VARCHAR(64) PRIMARY KEY NONCLUSTERED NOT ENFORCED,\n" + "%s NVARCHAR(MAX),\n" // Microsoft SQL Server specific: NVARCHAR can store Unicode meanwhile VARCHAR - not + "%s DATETIMEOFFSET(7) DEFAULT SYSDATETIMEOFFSET()\n" + ");\n",