Repository navigation
refactor(warehouse): drop the per dialect identifier quoting wrappers - #7421
Merged
achettyiitr merged 3 commits intoSep 24, 2026
Merged
Conversation
QuoteQualifiedIdentifier and JoinQuotedIdentifiers already take the dialect's quoting function, so the DoubleQuote/BracketQuote/BacktickQuote qualified and comma joined wrappers only restate that. Remove them and let callers pass the quoting function, leaving one way to build a qualified identifier or an identifier list. The dialect specific escapers stay, since they are where the dialects actually differ, as does BigQueryQuoteTablePath, which quotes a dotted path as a single identifier rather than part by part. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.29.1
saikumarrs
approved these changes
Sep 24, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7421 +/- ##
==========================================
- Coverage 83.80% 83.80% -0.01%
==========================================
Files 622 622
Lines 61991 61979 -12
==========================================
- Hits 51951 51940 -11
+ Misses 10037 10036 -1
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…are the remaining helpers - Drop DoubleQuoteAndJoinByComma in favour of JoinQuotedIdentifiers with DoubleQuoteIdentifier, so the dialect is picked at the call site and there is one helper per behaviour rather than one per dialect. - Add ClickHouseQuoteIdentifier, which backslash escapes the delimiter instead of doubling it, because ClickHouse applies string literal escape rules inside a double quoted identifier. - Add TableLocationPath, which builds a table's storage path for the Delta Lake LOCATION clause and the Snowflake Iceberg BASE_LOCATION. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.29.1
…ic join helper It was the last per dialect comma join wrapper and only forwarded to JoinQuotedIdentifiers, so callers now pass DoubleQuoteIdentifier themselves. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> 🔒 Scanned for secrets using gitleaks 8.29.1
achettyiitr
deleted the
refactor/int-6791-drop-dialect-quoting-wrappers
branch
September 24, 2026 05:31
This was referenced Sep 28, 2026
Merged
itsmihir
pushed a commit
that referenced
this pull request
Sep 28, 2026
🤖 I have created a release *beep* *boop* --- ## [1.89.0-rc.1](v1.88.0...v1.89.0-rc.1) (2026-09-28) ### Features * **warehouse:** add shared SQL identifier and string literal quoting helpers ([#7406](#7406)) ([814f6db](814f6db)) ### Bug Fixes * **warehouse:** quote azure synapse identifiers ([#7363](#7363)) ([d399fd1](d399fd1)) * **warehouse:** quote bigquery identifiers ([#7366](#7366)) ([89de526](89de526)) * **warehouse:** quote clickhouse identifiers ([#7420](#7420)) ([490c097](490c097)) * **warehouse:** quote deltalake identifiers ([#7368](#7368)) ([08f2f1e](08f2f1e)) * **warehouse:** quote mssql identifiers ([#7364](#7364)) ([695b881](695b881)) * **warehouse:** quote postgres load column list and bind schema existence check ([#7405](#7405)) ([2ff81c1](2ff81c1)) * **warehouse:** quote redshift identifiers ([#7365](#7365)) ([a3e2a3c](a3e2a3c)) * **warehouse:** quote snowflake identifiers ([#7367](#7367)) ([53d4891](53d4891)) ### Miscellaneous * sync release v1.88.0 to main branch ([#7415](#7415)) ([130bdd3](130bdd3)) * **warehouse:** drop the per dialect identifier quoting wrappers ([#7421](#7421)) ([ec0cf52](ec0cf52)) * **warehouse:** drop the v2 suffix now v1 is gone ([#7418](#7418)) ([b759c33](b759c33)) * **warehouse:** move back to upstream clickhouse-go ([#7419](#7419)) ([1a7e776](1a7e776)) * **warehouse:** remove the ClickHouse v1 driver ([#7417](#7417)) ([bd14179](bd14179)) * **warehouse:** replace dead clickhouse blockSize with commitEvery ([#7427](#7427)) ([0806478](0806478)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir
pushed a commit
that referenced
this pull request
Sep 29, 2026
🤖 I have created a release *beep* *boop* --- ## [1.89.0](v1.88.0...v1.89.0) (2026-09-28) ### Features * **warehouse:** add shared SQL identifier and string literal quoting helpers ([#7406](#7406)) ([814f6db](814f6db)) ### Bug Fixes * **warehouse:** quote azure synapse identifiers ([#7363](#7363)) ([d399fd1](d399fd1)) * **warehouse:** quote bigquery identifiers ([#7366](#7366)) ([89de526](89de526)) * **warehouse:** quote clickhouse identifiers ([#7420](#7420)) ([490c097](490c097)) * **warehouse:** quote deltalake identifiers ([#7368](#7368)) ([08f2f1e](08f2f1e)) * **warehouse:** quote mssql identifiers ([#7364](#7364)) ([695b881](695b881)) * **warehouse:** quote postgres load column list and bind schema existence check ([#7405](#7405)) ([2ff81c1](2ff81c1)) * **warehouse:** quote redshift identifiers ([#7365](#7365)) ([a3e2a3c](a3e2a3c)) * **warehouse:** quote snowflake identifiers ([#7367](#7367)) ([53d4891](53d4891)) ### Miscellaneous * sync release v1.88.0 to main branch ([#7415](#7415)) ([130bdd3](130bdd3)) * **warehouse:** drop the per dialect identifier quoting wrappers ([#7421](#7421)) ([ec0cf52](ec0cf52)) * **warehouse:** drop the v2 suffix now v1 is gone ([#7418](#7418)) ([b759c33](b759c33)) * **warehouse:** move back to upstream clickhouse-go ([#7419](#7419)) ([1a7e776](1a7e776)) * **warehouse:** remove the ClickHouse v1 driver ([#7417](#7417)) ([bd14179](bd14179)) * **warehouse:** replace dead clickhouse blockSize with commitEvery ([#7427](#7427)) ([0806478](0806478)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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
warehouse/utilsgrew both a generic and a per dialect way to build the same SQL:The wrappers only restate the generic helper with the quoting function filled in, so this removes them:
DoubleQuoteQualifiedIdentifier,BracketQuoteQualifiedIdentifier,BacktickQuoteQualifiedIdentifierBracketQuoteAndJoinByComma,BacktickQuoteAndJoinByCommaCallers pass the dialect's quoting function to
QuoteQualifiedIdentifierorJoinQuotedIdentifiersinstead, which is howQuoteCommaSeparatedIdentifiersalready works.What stays:
DoubleQuoteIdentifier,BracketQuoteIdentifier,BacktickQuoteIdentifier,BigQueryQuoteIdentifier), which is where the dialects genuinely differBigQueryQuoteTablePath, which quotes a dotted path as one identifier rather than part by part, so it is not the generic helper with an argument filled inDoubleQuoteAndJoinByComma, which predates this work and is used across the warehouse integrationsNothing on master used the removed wrappers; the INT-6791 integration PRs (#7363, #7364, #7365, #7366, #7367, #7368, #7405, #7420) have been updated to call the generic helpers, so they are unaffected whichever order these merge in.
Tests
identifier_test.go: the dialect assertions now go throughQuoteQualifiedIdentifierandJoinQuotedIdentifiers, covering the same escaping.Linear Ticket
Related to INT-6791
Security