Skip to content

SNOW-3654850: escape identifier quotes in all dialect generate_select_query methods#4272

Merged
sfc-gh-aling merged 3 commits into
mainfrom
SNOW-3654850-escape-identifier-quotes
Jul 2, 2026
Merged

SNOW-3654850: escape identifier quotes in all dialect generate_select_query methods#4272
sfc-gh-aling merged 3 commits into
mainfrom
SNOW-3654850-escape-identifier-quotes

Conversation

@sfc-gh-aling

Copy link
Copy Markdown
Collaborator

Summary

Identifier quotes were not consistently escaped when building generate_select_query SQL across the data-source dialects, which could produce malformed SQL for identifiers containing quote characters. This escapes them consistently in the base dialect and all dialect subclasses (Databricks, MySQL, Oracle, PostgreSQL, SQL Server).

Changes

  • Escape identifier quotes in base_dialect and each dialect's generate_select_query.
  • Unit tests (tests/unit/test_dialect_quoting.py) and per-dialect integ tests.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@codecov-commenter

codecov-commenter commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.52%. Comparing base (e773089) to head (774d58c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4272   +/-   ##
=======================================
  Coverage   95.52%   95.52%           
=======================================
  Files         171      171           
  Lines       44305    44322   +17     
  Branches     7565     7565           
=======================================
+ Hits        42322    42339   +17     
  Misses       1221     1221           
  Partials      762      762           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sfc-gh-aling sfc-gh-aling merged commit 7a02a31 into main Jul 2, 2026
29 of 31 checks passed
@sfc-gh-aling sfc-gh-aling deleted the SNOW-3654850-escape-identifier-quotes branch July 2, 2026 00:07
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants