Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synapse Dedicated: DW_COMPATIBILITY_LEVEL & MCD hash distribution #224

Closed
dzsquared opened this issue Feb 14, 2023 Discussed in #220 · 7 comments
Closed

Synapse Dedicated: DW_COMPATIBILITY_LEVEL & MCD hash distribution #224

dzsquared opened this issue Feb 14, 2023 Discussed in #220 · 7 comments
Labels
enhancement New feature or request fixed-pending-release Fix in upcoming release sqldw Issues related to SQL DW and/or Synapse
Milestone

Comments

@dzsquared
Copy link
Contributor

Discussed in #220

Originally posted by brain246 February 10, 2023
Hi there!

Not sure if this is the right place to ask/discuss this, but i am currently developing a Synapse dedicated pool database with VS2022/Data-Tools/SQl-Database-Project.

Since we had performance issues with some tables, i set database scoped configuration setting "DW_COMPATIBILITY_LEVEL" to 9000. That enables (since August 2022) the multi column hash distribution feature, meaning since half a year this feature is already in public preview. In our project i cannot live without it anymore 😄

Official announcement

Now that setting is neither available in the VS project (as database setting), nor can i set it in a (build) script myself as this leads to build & intellisense errors.

When i do a schema compare & update from dev-database to the project, the multi column distribution code is written correctly to the local project files. However this results, again, in intellisense and build errors.

Is my assumption correct, that you will deal with this, as soon as it is out of public preview and becomes a regular feature? Or is there anything i am missing and it should work already? Maybe anyone knows a workaround? 🤣

Have a nice weekend,
Thomas

@dzsquared dzsquared added this to the Next Release + 1 milestone Mar 8, 2023
@dzsquared dzsquared added enhancement New feature or request sqldw Issues related to SQL DW and/or Synapse labels Mar 8, 2023
@dzsquared dzsquared added the fixed-pending-release Fix in upcoming release label Jul 19, 2023
@jitheshksn
Copy link

Waiting for this. When will it be ready? We are facing issue with DACPAC 9 (sqlproj)

@llali llali closed this as completed Oct 19, 2023
@fabiocarello
Copy link

fabiocarello commented Jan 18, 2024

Sorry, has this been implemented? I’m experiencing the same issue as the original users who posted. I’m developing a SQL Project using SSDT on Visual Studio 2022. Do I need to manually update any tool or dependency?

Thanks!

@microsoftprince
Copy link

microsoftprince commented Jan 18, 2024 via email

@OleksiiKostyniuk
Copy link

Hi, guys!

I'm struggling with the same issue in Azure DWH (Synapse Analytics).
When I try to create a multi-column distributed table, I receive the following error in the MS Visual Studio 2022:

CREATE TABLE [test].[clients]
(
	[client_id] [int] NOT NULL,
	[client_external_id] [int] NOT NULL,
	[client_name] [nvarchar](100) NOT NULL
)
WITH
(
	DISTRIBUTION = HASH([client_id], [client_external_id]),
	HEAP
)

SQL71657: Cannot create a multi-column distributed table.

I'm using Visual Studio 2022 Community Edition, and I've installed SQLPackage (Version number: 162.1.172) as suggested earlier, but without success.

In the project properties, I've tried to set the following: Project Settings (Target platform -> MS Azure Data Warehouse) -> Database settings -> Miscellaneous -> Compatibility level = SQL Server 2017 (140).
However, this doesn't help either.

Should I manually update any tools or dependencies in the project to fix this issue?

On the DWH side, this script creates a table without any issues.

I would appreciate any help or suggestions.

Best regards,
Alex

@microsoftprince
Copy link

microsoftprince commented Jan 22, 2024 via email

@pscorca
Copy link

pscorca commented Mar 17, 2024

Hi,
I've updated my Visual Studio 2022 with SSDT to 17.9.2 version and I've created a new database project: I cannot change the DW compatibility level yet for Azure SQL Data Warehouse as a target platform.
The Visual Studio 2022 version 17.9 Release Notes documentation says that the 17.9.0 version has the "support for MCD (Multi-Column Distribution) in SSDT".
Now, how could I change the DW compatibility level inside a Visual Studio 2022 database project for a Synapse dedicated SQL pool? Thanks

@dzsquared
Copy link
Contributor Author

@pscorca - the DW compatibility level is surfaced in Visual Studio 2022 as a database setting, in the screen where you set the target platform there should be a button for "Database Settings". In the operational tab in that dialog is the DW compatibility level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fixed-pending-release Fix in upcoming release sqldw Issues related to SQL DW and/or Synapse
Projects
None yet
Development

No branches or pull requests

7 participants