Skip to content

Match the server's identifier case when completing on Snowflake #2527

Closed

Description

@datlechin

Problem

Snowflake stores unquoted identifiers uppercase, so the catalog reports MY_TABLE and autocomplete inserts it that way. Anyone writing lowercase SQL then has a query in two cases, and quoting it later turns a working query into one that cannot resolve. Oracle folds unquoted names to uppercase the same way.

Keywords already follow the typing: since #2902, Settings > Editor > Keyword case makes sel complete to select and SEL to SELECT (features/autocomplete.mdx, Keyword case). Identifiers were left out on purpose. The same page says "Table, column, schema and alias names are never re-cased", and an identifier item keeps its spelling fixed (caseFolding in apple/Packages/TableProMacCore/Sources/TableProAutocomplete/SQLCompletionItem.swift:57), because re-casing a name the server stores in mixed case would break it.

Proposed solution

  • A per-connection identifier case setting for completion: as stored, lower, upper, or match what the user is typing.
  • Default to as stored, so nothing changes for a connection until the user picks another value.
  • Re-case a name only when the server would fold the new spelling back to the stored one: an all-uppercase, unquoted-safe name on Snowflake or Oracle. A name that needs quoting, or one stored in mixed case, is inserted quoted and exactly as stored.
  • Apply the same rule to the SQL Copy as writes, so one connection reads consistently.

Done means, on a Snowflake connection set to match typing, select * from my_t completes to my_table and the query runs, while a table created as "MixedCase" still completes as "MixedCase".

Alternatives considered

Retype every completion in the case you wanted.

Platform

macOS

Related database type

N/A / General

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. added
    platform-macos
    on Oct 19, 2026
  3. datlechin commented on Oct 21, 2026

    @datlechin
    MemberAuthor

    Fixed by #3731.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions