Skip to content

fix(contrib/drivers/dm): preserve quoted identifiers - #4828

Open
yuyinw wants to merge 1 commit into
gogf:masterfrom
yuyinw:fix/dm-preserve-quoted-identifiers
Open

fix(contrib/drivers/dm): preserve quoted identifiers#4828
yuyinw wants to merge 1 commit into
gogf:masterfrom
yuyinw:fix/dm-preserve-quoted-identifiers

Conversation

@yuyinw

@yuyinw yuyinw commented Aug 4, 2026

Copy link
Copy Markdown

Description

This PR fixes the DM driver SQL filter so it preserves double-quoted identifiers, which are used by DM as identifier delimiters.

Previously, DoFilter removed all double quotes from SQL, breaking quoted table or column names. This change only removes newline and tab characters while keeping quoted identifiers intact.

The DM metadata lookup now first keeps the existing uppercase lookup behavior, then falls back to the original table-name case so quoted, case-sensitive table names can still resolve their fields.

Testing

  • go test -run 'TestDriverDoFilterPreservesDoubleQuotedIdentifiers|TestTableNameCandidatesForMetadata' -count=1

@yuyinw yuyinw changed the title fix: preserve DM quoted identifiers fix(contrib/drivers/dm): preserve quoted identifiers Aug 4, 2026
@yuyinw
yuyinw force-pushed the fix/dm-preserve-quoted-identifiers branch 4 times, most recently from 266684f to 7caccfb Compare August 5, 2026 11:03
@yuyinw
yuyinw force-pushed the fix/dm-preserve-quoted-identifiers branch from 7caccfb to 0dd607e Compare August 5, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant