Repository navigation
Fix: Handle T-SQL/Fabric table name quoting in ManifestNode identifier generation - #179
Merged
Merged
Conversation
added 2 commits
May 29, 2026 20:55
I also needed to rename the file so I'm not misspelling the word manifest.
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.
Description and Motivation
In dbt-fabric 1.9.9, the adapter now provides relation name values with full bracket escaping (
[database].[schema].[table]). This is not uncommon, but has a non-traditional syntax for folks outside of the T-SQL world. Currently, dbt-loom uses the relation name to generate an internal identifier for downstream relation construction. Unfortunately, dbt-loom is not fluent in T-SQL yet, and it will return[table]as the identifier and notidentifier. When this gets wrapped by the adapter again in a downstream project, it'll get doubled wrapped ([[table]). Kudos to @paul-schale for the explanation!This PR does two things:
identifierproperty method. This lets us keep an eye on what quote characters are removed.identifierproperty method inManifestNodeto handle the[]quote chars! To do this, I've swapped over to using regex instead of using a series of replace statements. It's quite a bit more elegant IMHO.Between the unit test and some smoke tests, this seems to work perfectly.
Resolves: #178