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

T-SQL support #229

Open
sdebruyn opened this issue Nov 3, 2022 · 10 comments
Open

T-SQL support #229

sdebruyn opened this issue Nov 3, 2022 · 10 comments
Labels
enhancement New feature or request

Comments

@sdebruyn
Copy link

sdebruyn commented Nov 3, 2022

I would like to have support for dbt-sqlserver and dbt-synapse. What would I have to do to make this happen? I am one of the maintainers of those 2 adapters :)

@sdebruyn sdebruyn added the enhancement New feature or request label Nov 3, 2022
@dave-connors-3
Copy link
Collaborator

hey @sdebruyn! what a wonderful question! apologies for the delay on the response.

I honestly am not sure what the answer is! Given that the team who built this has really limited experience with either of those adapters, i'm not sure how well we'd be able to maintain it. Would hate to not be able to let other users use the package though!

what are your thoughts here?

@b-per
Copy link
Collaborator

b-per commented Nov 14, 2022

Hi @sdebruyn ! We have not tested the package on T-SQL and I don't know if it would work or not (feel free to try! 😄 )

The first steps will be to make the dispatched macros work with T-SQL. The main ones are:

Saying so, it is not sure that once you get a TSQL version of all those macros the package will work out of the box. I believe that we are using a lof of group by 1, 2 etc... in our models, which to my knowledge is still not supported by Microsoft.

@github-actions
Copy link
Contributor

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jul 19, 2023
@github-actions
Copy link
Contributor

Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 27, 2023
@b-per b-per reopened this Sep 28, 2023
@b-per
Copy link
Collaborator

b-per commented Sep 28, 2023

Hi @sdebruyn . We are adding support to more adapters and are keen to revisit this issue. I searched a bit online and kind of saw that group by 1, 2 might be supported in T-SQL now?

Would you still be interested in adding support for TSQL?

To see what would need to be changed you could start with running the integration tests with a profile pointing to a TSQL DW

@github-actions github-actions bot removed the Stale label Sep 29, 2023
Copy link
Contributor

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.

@github-actions github-actions bot added the Stale label Mar 28, 2024
@b-per b-per removed the Stale label Apr 1, 2024
@jj12000
Copy link

jj12000 commented Jul 25, 2024

+1 to this feature, I would be interested in this package having support for T-SQL, thanks!

@joshrodgersKA
Copy link

+1 as well. We are on dbt-fabric now and this would be super useful.

@b-per
Copy link
Collaborator

b-per commented Nov 25, 2024

It looks like Fabric now supports nested CTEs (finally). So we might be able to do a bit more testing on that front.

@alittlesliceoftom
Copy link

alittlesliceoftom commented Dec 18, 2024

FYI, this is the error set on attempting build on a synapse installation:

image

So as well as the CTE work listed above, it looks like there are some minor data type corrections where VARCHAR is needed instead of STRING etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants