Closed fivetran-joemarkiewicz closed 2 months ago
The SQL Server buildkite test is currently failing, but that is due to a permission issue which should hopefully be resolved soon. I will re-kick off the integration tests once that is resolved. I don't imagine SQL Server would be failing for any of these changes; therefore, this should be good to review even with the failing buildkite test.
@fivetran-avinash really really good catch. I ran this only in Databricks so definitely didn't catch that then!
@fivetran-joemarkiewicz Tagging on to Avinash's comments, a more future-proof way to handle the logic update might be:
...
materialized='table' if target.type == 'databricks'
and not is_databricks_runtime(or whatever the old version name was)() else 'incremental'
...
That way we don't have to list out the other warehouses. What do you think?
@fivetran-catfritz I like that idea, but the benefit of listing out each of the warehouses is we are explicitly only using the incremental strategy if we know the destination is supported. If it is not in our supported list, then we use the table
materialization. This likely will provide the greatest opportunity for success if for some reason a destination not supported is used to run this model.
@fivetran-joemarkiewicz Makes sense--in that case approved on my end!
PR Overview
This PR will address the following Issue/Feature: Internal tickets and Issue #128
This PR will result in the following new package version:
v1.8.0
When I tested this locally for Databricks there was actually no error when running without a full refresh. However, the table format did not change. Therefore, a breaking change should be leveraged to ensure a full refresh is ran and the delta table format is applied.
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please share any and all of your validation steps:
To validate these changes the validation tests were included and you can see they were successful for the following destinations:
BigQuery
Databricks All Purpose Cluster
Databricks SQL Warehouse
Additionally, I validated that the All Purpose Cluster appropriately runs an incremental strategy and the non All Purpose (SQL Warehouse in this case) does not run an incremental strategy.
Databricks All Purpose Cluster
Databricks SQL Warehouse
Finally, I confirmed that the Delta format runs as expected and without issue on the Databricks All Purpose cluster on incremental runs.
If you had to summarize this PR in an emoji, which would it be?
🌳