Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What change does this PR introduce?
This PR adjusts the
union_data
macro to ensure a source connection may be established regardless of unioning schemas or not. This is a mirror PR to PR #110 with the addition of handling the error which resulted fromv0.4.5
where thedefault_schema
name did not always map to the name of the source.yml in the package. This caused compilation errors for customers and MUST be avoided and addressed.Unfortunately, the only way to address this is to hard code the exceptions and performing a proper mapping exercise. As this behavior is only present in two packages, it is not too much of a risk, but this can be expanded in the future to include more as we roll out this feature.
A few other approaches I took include the following:
Very much open to other ideas if any have them.
If this PR introduces a new macro, how did you test the new macro?
This is not a new macro but rather an expansion of the existing
union_data
macro.If this PR introduces a modification to an existing macro, which packages is the macro currently present in and what steps were taken to test compatibility across packages?
This update mainly impacts packages using the union_data macro. As such, this version of fivetran_utils was tested on all of the following packages:
Additional packages this was tested on include:
Did you update the README to reflect the macro addition/modifications?
The README updates were already applied in the previous PR linked above.