Add data source integrations with Snowflake#330
Merged
sfc-gh-mwyatt merged 14 commits intosnowflakedb:mainfrom Jan 7, 2026
Merged
Add data source integrations with Snowflake#330sfc-gh-mwyatt merged 14 commits intosnowflakedb:mainfrom
sfc-gh-mwyatt merged 14 commits intosnowflakedb:mainfrom
Conversation
- Renamed SnowflakeTableSourceConfig to SnowflakeSqlSourceConfig and updated its documentation. - Introduced SnowflakeTableSourceConfig that inherits from SnowflakeSqlSourceConfig, auto-generating SQL queries from table names. - Updated SnowflakeSqlDataSource to utilize SQL queries instead of table names. - Enhanced tests for SnowflakeSqlSourceConfig and SnowflakeSqlDataSource to validate new functionality and configurations.
…e data sources - Introduced README.md detailing project overview, Snowflake data source types, prerequisites, and setup instructions. - Added setup_snowflake.py script to populate Snowflake with training data from HuggingFace, including database and schema creation. - Created YAML configuration files for training using SQL queries, tables, and datasets from Snowflake. - Provided troubleshooting tips for common connection and resource issues.
sfc-gh-mwyatt
approved these changes
Dec 17, 2025
sfc-gh-dhung
commented
Dec 17, 2025
sfc-gh-jrasley
approved these changes
Jan 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Snowflake data source integration
This PR adds native support for loading training data directly from Snowflake, enabling users to train models on data stored in their Snowflake data warehouse.
Features
Unified
snowflakedata source type with three mutually exclusive modes:sql): Execute arbitrary SQL queries against Snowflaketable_name): Load data directly from a Snowflake table (auto-generatesSELECT * FROM)dataset_uri): Load from versioned Snowflake Datasets using thesnow://URI formatAdditional options:
column_mapping: Rename columns from source to target formatlimit: Cap the number of rows loadedbatch_size: Configure batch size for data retrievalConfiguration
Snowflake credentials can be provided via:
SNOWFLAKE_ACCOUNT,SNOWFLAKE_USER, etc.)~/.snowflake/connections.toml)Installation
Examples
Examples are also provided in
projects/causal_snowflake