Skip to content

Snowflake Apps: expand bare USER$ to current user's PDB name - #3138

Closed
sfc-gh-mborins wants to merge 1 commit into
mainfrom
feat/user-dollar-shorthand
Closed

sfc-gh-mborins wants to merge 1 commit into
mainfrom
feat/user-dollar-shorthand

Conversation

@sfc-gh-mborins

Copy link
Copy Markdown
Contributor

Add SnowflakeAppManager.resolve_database() which expands the bare USER$ shorthand (supported server-side) to the full personal database name (e.g. USER$MBORINS) before validation and SHOW DATABASES queries. Wire it into database_exists(), schema_exists(), and snowflake_app_validate() so users can write database: "USER$" in snowflake.yml and have it just work.

Pre-review checklist

  • If my changes add or modify user-facing interface (commands, flags, output formats), I consulted maintainers and got sign-off beforehand (how).
  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • Manually tested on macOS
  • Manually tested on Windows
  • I've confirmed my changes are up-to-date with the target branch.
  • I've described my changes in RELEASE-NOTES.md (see when and how).
  • I've updated documentation if behavior changed.

Changes description

...

Add SnowflakeAppManager.resolve_database() which expands the bare
USER\$ shorthand (supported server-side) to the full personal database
name (e.g. USER\$MBORINS) before validation and SHOW DATABASES queries.
Wire it into database_exists(), schema_exists(), and
snowflake_app_validate() so users can write database: "USER\$" in
snowflake.yml and have it just work.

.... Generated with [Cortex Code](https://docs.snowflake.com/en/user-guide/cortex-code/cortex-code)

Co-Authored-By: Cortex Code <noreply@snowflake.com>
@sfc-gh-mborins
sfc-gh-mborins requested review from a team as code owners June 25, 2026 16:07
@sfc-gh-mborins
sfc-gh-mborins marked this pull request as draft June 25, 2026 16:08
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