-
Notifications
You must be signed in to change notification settings - Fork 177
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
[ELE-51] Microsoft SQL Server (mssql, dbt-sqlserver) integration #353
Comments
Hi @agn-sta, You are of course welcome to try and implement it yourself, I'll be happy to provide guidance! |
Okay, thank you for a quick answer ;) |
@Maayan-s what would be involved in this? Is there another port I can look at to see the scale of what would be required to pick this up? |
Hi @rtooker, Generally speaking, we implemented every platform-specific functionality using This might cause a problem with SQL Server as dbt_utils does not support it. Since dbt 1.2.0 many of the macros were migrated from dbt_utils to the adapter code, but I'm not sure if these are all implemented in the We recently decided (due to demand from the community) to add a Databricks integration, and approached it gradually - Step 1 - Add support for uploading dbt artifacts and run results (in the dbt package). You can check out this PR where I implemented step 1 for Databricks. As you can see it actually required pretty minor changes. |
Thanks @Maayan-s . I'll have a look at step 1 on Friday. I'm hoping it's straightforward. |
At first glance there are a lot of errors when running the e2e tests against sql server but many of them are similar. One of the most common errors seems to be related to sql server not having a boolean data type. A couple of questions:
|
Hi @rtooker. Regarding your questions -
What do you think? |
Error also for the sample query from limit to top and the datediff (not sure if from 1.3 dbt.utils solved it)... Also timestamp type gave me headache |
@rtooker @G14rb Here's an example of how we can exclude parts of the E2E tests and potentially address them later if we'd like. |
Nice, are you going to add the adapter for both packages (elementary and dbt-data-reliability), right? |
Yes :) |
Hi @rtooker , Hope you are well! |
Hi @haritamar , I had to leave it for a few weeks but I got back to it today and have fixed maybe 10 compatibility issues - https://github.com/elementary-data/dbt-data-reliability/compare/master...rtooker:dbt-data-reliability:sql-server-initial-support?expand=1 Still quite a few issues though, just a painful process of unpicking them one by one. Hopefully I'll get a few more hours on it on Friday. Robert |
There's probably a decision to be made on which repo some of these fixes should end up in, but I want to get a clean run of the integration tests first. |
Has there been an update on this? Thanks! |
Hi @tford06 , @marvinfromblueforte isn't on the thread but maybe @rtooker can share if they are working on it together? |
A couple days ago I had a look at @rtooker 's fork to see if I can help too. If I remember correctly, the biggest remaining issue is MSSQL's lack of support for nested CTEs and GROUP BY numbers. I think the former could be a showstopper because according to this open issue it requires reworking the SQL compiler in the dbt-sqlserver package. However, I still think that limited functionality (excluding anomaly testing) should be possible. I'd like to give this another try after the holidays. @rtooker Do you currently have any plans to keep working on this issue? (Edit: mistakenly mentioned tford06 instead of rtooker) |
Anyone still working on this? I would love to use Elementary for just test result collection but we are currently using SQL Server. |
Like the above: Are you planning to extend elementary for dbt-sqlserver adapter?
ELE-51
The text was updated successfully, but these errors were encountered: