Skip to content

feat(snowflake): set QUOTED_IDENTIFIERS_IGNORE_CASE on session#30

Merged
Abhishek Patil (abhishek-pattern) merged 3 commits into
mainfrom
feat/snowflake-quoted-identifiers-ignore-case
Jul 15, 2026
Merged

feat(snowflake): set QUOTED_IDENTIFIERS_IGNORE_CASE on session#30
Abhishek Patil (abhishek-pattern) merged 3 commits into
mainfrom
feat/snowflake-quoted-identifiers-ignore-case

Conversation

@abhishek-pattern

@abhishek-pattern Abhishek Patil (abhishek-pattern) commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Clickup --> https://pattern.clickup.com/t/2323726/DS-2569

Summary

  • Every Snowflake connection this package opens now runs ALTER SESSION SET QUOTED_IDENTIFIERS_IGNORE_CASE = TRUE on connect, so quoted identifiers resolve case-insensitively instead of failing on case mismatches.
  • Documents this permanent session behavior in the Notes section of publish, publish_pandas, and query_pandas_from_snowflake docs.

Test plan

  • Run a query with a mixed-case quoted identifier through query_pandas_from_snowflake / publish and confirm it resolves without a "does not exist" error.

🤖 Generated with Claude Code

Add ALTER SESSION SET QUOTED_IDENTIFIERS_IGNORE_CASE = TRUE so quoted
identifiers are matched case-insensitively in Snowflake connections.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Document that every Snowflake session opened by this package sets
QUOTED_IDENTIFIERS_IGNORE_CASE = TRUE, so quoted identifiers resolve
case-insensitively regardless of per-call quoting choices.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 15, 2026 06:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Sets a Snowflake session parameter on connect so quoted identifiers are resolved case-insensitively, and documents this behavior in the Metaflow helper docs.

Changes:

  • Executes ALTER SESSION SET QUOTED_IDENTIFIERS_IGNORE_CASE = TRUE for each Snowflake connection created via metaflow/snowflake_connection.py.
  • Adds “Notes” to relevant docs calling out the always-on session behavior for quoted identifiers.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

File Description
src/ds_platform_utils/metaflow/snowflake_connection.py Adds an ALTER SESSION call during connection setup.
docs/metaflow/query_pandas_from_snowflake.md Documents the session’s quoted-identifier case-insensitivity behavior.
docs/metaflow/publish.md Documents the session’s quoted-identifier case-insensitivity behavior for publish queries/audits.
docs/metaflow/publish_pandas.md Documents the session’s quoted-identifier case-insensitivity behavior for pandas publishing.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/ds_platform_utils/metaflow/snowflake_connection.py
Comment thread src/ds_platform_utils/metaflow/snowflake_connection.py
@chinmay-dolli-pattern Chinmay (chinmay-dolli-pattern) requested a review from a team July 15, 2026 06:31
@abhishek-pattern Abhishek Patil (abhishek-pattern) merged commit 06ead9f into main Jul 15, 2026
11 checks passed
@abhishek-pattern Abhishek Patil (abhishek-pattern) deleted the feat/snowflake-quoted-identifiers-ignore-case branch July 15, 2026 06:45
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.

3 participants