Skip to content

feat: add Snowflake data loader - #503

Merged
Chenglong Wang (Chenglong-MS) merged 1 commit into
microsoft:devfrom
syedataiba12311-coder:feature/snowflake-data-loader
Nov 6, 2026
Merged

Chenglong Wang (Chenglong-MS) merged 1 commit into
microsoft:devfrom
syedataiba12311-coder:feature/snowflake-data-loader

Conversation

@syedataiba12311-coder

@syedataiba12311-coder syeda (syedataiba12311-coder) commented Oct 25, 2026 •

Copy link
Copy Markdown

Summary

Adds a built-in Snowflake data loader to Data Formulator, following the existing ExternalDataLoader connector architecture.

Refs #156.

What this adds

  • Snowflake connection support using snowflake-connector-python
  • Username/password authentication with account and warehouse configuration
  • Optional database, schema, and role scoping
  • database → schema → table catalog hierarchy with lazy browsing
  • Table and column metadata from Snowflake INFORMATION_SCHEMA, including comments
  • Arrow-native data fetching with fetch_arrow_all()
  • Projection, structured filters, sorting, and row limits for imports
  • Snowflake connection guide
  • Focused unit tests plus an environment-gated live Snowflake roundtrip test

Scope

This first version intentionally focuses on password-based Snowflake connections. SSO/MFA-specific authentication flows can be added separately without expanding this initial connector PR.

Testing

Tests were added for:

  • Required connection and authentication parameters
  • Catalog hierarchy and scope pinning
  • Source-table resolution
  • SQL generation for projection, filters, sorting, and limits
  • Optional live Snowflake connection/list/metadata/fetch roundtrip
  • Project-wide loader verification

The repository's full pytest suite has not yet been run in my local environment, so this PR is being opened as a draft for CI validation before marking it ready for review.

AI assistance

AI assistance was used to investigate the repository architecture and help draft the implementation. The changes were reviewed against the existing Data Formulator loader patterns and Snowflake connector APIs before submission.

@syedataiba12311-coder
syeda (syedataiba12311-coder) marked this pull request as draft October 25, 2026 16:01
@syedataiba12311-coder

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@Chenglong-MS

Copy link
Copy Markdown
Collaborator

wow this is awesome! Let me do some quick check and merge it!

@Chenglong-MS
Chenglong Wang (Chenglong-MS) changed the base branch from main to dev October 27, 2026 01:06
@Chenglong-MS

Copy link
Copy Markdown
Collaborator

btw we have some super cool stuff in dev, so let's work out this and merge to dev

@syedataiba12311-coder
syeda (syedataiba12311-coder) marked this pull request as ready for review October 27, 2026 15:41
@Chenglong-MS
Chenglong Wang (Chenglong-MS) merged commit e61f961 into microsoft:dev Nov 6, 2026
1 check passed
Chenglong Wang (Chenglong-MS) added a commit that referenced this pull request Nov 6, 2026
- Push source_filters down, declare server_query execution, and run
  structured loads and probes in the warehouse via probe_utils (new
  SNOWFLAKE dialect), so agent loads keep their filters.
- Resolve typed database/schema like Snowflake SQL (unquoted -> upper case)
  before quoting; list every database when browsing (cap only list_tables).
- Guide and password field point to programmatic access tokens, since
  Snowflake now blocks single-factor password sign-ins.
- Brand icon, warehouse category, connector description, and localized
  form strings and guide for every existing locale; lock the dependency.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants