Repository navigation
feat: Enhance manifest reference resolution and add tests for config … - #162
Merged
adrienneyager merged 1 commit intoMar 21, 2026
Merged
Conversation
PhilippLange
force-pushed
the
fix/databricks-config-parsing
branch
from
March 19, 2026 09:50
366b44a to
651d940
Compare
PhilippLange
force-pushed
the
fix/databricks-config-parsing
branch
from
March 19, 2026 09:52
651d940 to
26dd345
Compare
adrienneyager
self-requested a review
March 21, 2026 01:36
adrienneyager
approved these changes
Mar 21, 2026
adrienneyager
left a comment
Owner
There was a problem hiding this comment.
Thanks for the meaningful improvement, @PhilippLange! Approved ✅
| """ | ||
| ref_type = info.data.get("type") | ||
| if ref_type is not None and isinstance(v, dict): | ||
| config_cls = _TYPE_TO_CONFIG.get(ref_type) |
Owner
There was a problem hiding this comment.
Praise: I quite like the explicit factory approach for picking the config type. Thanks for adding this.
| manifest_loader.load(manifest_reference) | ||
|
|
||
|
|
||
| def test_manifest_reference_resolves_databricks_config(): |
Owner
There was a problem hiding this comment.
Praise: Kudos for adding tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
my attempt to fix #161.
I tested this on macos and windows.
The Issue was, that Pydantic resolves Unions by trying each type in order, returning the first match.
Since both
FileReferenceConfigandDatabricksReferenceConfighave apathfield andFileReferenceConfigis listed first — so Databricks configs were silently parsed as file configs:https://github.com/nicholasyager/dbt-loom/blob/d0b89e62b8a12d560a4686a8ad6b21a0ef9b78fe/dbt_loom/config.py#L57-L66
Resulting in:
FileReferenceConfigthen runsPath(v).absolute().as_uri(), which on Windows prependsC:/to the Databricks volume path.