Skip to content

feat: Add moss-connector-snowflake - #336

Open
rohanshrma222 wants to merge 2 commits into
usemoss:mainfrom
rohanshrma222:snowflake
Open

feat: Add moss-connector-snowflake#336
rohanshrma222 wants to merge 2 commits into
usemoss:mainfrom
rohanshrma222:snowflake

Conversation

@rohanshrma222

@rohanshrma222 rohanshrma222 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Please ensure that your PR meets the following requirements:

  • I have read the CONTRIBUTING guide.
  • I have updated the documentation (if applicable).
  • My code follows the style guidelines of this project.
  • I have performed a self-review of my own code.
  • I have added tests that prove my fix is effective or that my feature works.
  • New and existing unit tests pass locally with my changes.

Description

Implements the Snowflake source connector for packages/moss-data-connector as described in issue.

This connector reads the result of any SQL SELECT query from a Snowflake warehouse and turns each row into a DocumentInfo document in a Moss search index. It uses the official snowflake-connector-python driver and works against any Snowflake account (Standard, Enterprise, or Snowflake on Azure/GCP).
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

What's included

src/connector.py — SnowflakeConnector class with DictCursor so rows come back as dicts keyed by column name
src/ingest.py — ingest() async helper (copied from _template)
src/init.py — re-exports SnowflakeConnector and ingest
pyproject.toml — declares snowflake-connector-python>=3.0 dependency
tests/test_snowflake.py — unit tests with mocked snowflake.connector.connect and MossClient
tests/test_integration_snowflake_moss.py — live end-to-end test; auto-skips without credentials
README.md — usage guide and quickstart
.env.example — template with both password and RSA key-pair auth options
Row added to packages/moss-data-connector/README.md

Auth support

The connector supports both authentication methods:

Password — standard users (as specified in the issue)
RSA key-pair — SERVICE-type users or accounts with MFA enforced (optional private_key_path parameter)

Fixes #170

prvideo.mp4
image

Type of Change

Feature

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@rohanshrma222

Copy link
Copy Markdown
Contributor Author

@HarshaNalluru Can you approve this PR, i have attached a working demo video also.

@github-actions

github-actions Bot commented Jul 25, 2026

Copy link
Copy Markdown

Codex review

No issues found.

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.

[Feat] : Add moss-connector-snowflake; Snowflake source connector

2 participants