Repository navigation
Add FastSnowflakeIngestion as a saparate helper for Snowpark based Snowflake ingestion (via Foundry Virtual Tables and lightweight transforms) - #124
Merged
nicornk merged 4 commits intoNov 20, 2026
Conversation
Contributor
Author
|
CI failures are the Spark tests on JDK 24+ (getSubject is not supported), unrelated to this change. The FSI tests pass. #123 pins Java 17 in ci.yml, I'll rebase once it's merged. |
misterbrunet
force-pushed
the
feat/fast-snowflake-ingestion
branch
from
November 20, 2026 09:22
1546166 to
5c5fd8d
Compare
FastSnowflakeIngestion as a saparate helper for Snowpark based Snowflake ingestionFastSnowflakeIngestion as a saparate helper for Snowpark based Snowflake ingestion (via Foundry Virtual Tables and lightweight transforms)
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The asynchronous unload is not awaited before downloading, risking incomplete data being committed and unload failures going unnoticed.
3 open issues
What changed in this PR
Adds FastSnowflakeIngestion to Foundry DevTools for moving Snowpark DataFrames into Foundry datasets from lightweight transforms, without Spark or a Data Connection agent.
Changes:
- Adds staged Parquet export, parallel file transfers, transaction commits, and local cleanup.
- Provides shared and fallback stages, job telemetry, session metadata, and an S3 endpoint workaround.
- Adds the optional
snowflakeextra, usage documentation, and dependency-isolated unit tests.
| File | Description |
|---|---|
tests/unit/helpers/test_fast_snowflake_ingestion.py |
Tests staging, transfers, telemetry, cleanup, and path helpers. |
tests/unit/helpers/__init__.py |
Adds the helper-test package marker. |
libs/foundry-dev-tools/src/foundry_dev_tools/helpers/fast_snowflake_ingestion/utils.py |
Resolves output paths and collects Foundry job information. |
libs/foundry-dev-tools/src/foundry_dev_tools/helpers/fast_snowflake_ingestion/_impl.py |
Implements the ingestion pipeline and Snowflake configuration. |
libs/foundry-dev-tools/src/foundry_dev_tools/helpers/fast_snowflake_ingestion/__init__.py |
Exports the public ingestion and path helpers. |
libs/foundry-dev-tools/pyproject.toml |
Adds Snowpark dependencies through snowflake and full extras. |
docs/examples/index.md |
Links the new ingestion guide. |
docs/examples/fast-snowflake-ingestion.md |
Documents setup, usage, permissions, and limitations. |
docs/changelog.md |
Announces the new ingestion helper. |
Review effort: Balanced
Contributor
Author
|
changes applied:
|
…xtra + 2.1.26 release + changelog cleaning
Contributor
Author
|
nicornk
reviewed
Nov 20, 2026
nicornk
approved these changes
Nov 20, 2026
nicornk
left a comment
Contributor
There was a problem hiding this comment.
please address my nit's in the example code
nicornk
approved these changes
Nov 20, 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.


Summary
Adding
FastSnowflakeIngestion(FSI), a helper that syncs Snowflake data into a Foundry dataset from a lightweight transform using only a Snowpark session - no Spark, no Data Connection agent.fsi.save_snowpark_dataframe_to_foundry_output(df):dfas Parquet into a temporary Snowflake stage (dropped by Snowflake at session end)Features:
use_shared_db,db_name,schema_name), with an optional fallback stage (fallback_db_name,fallback_schema_name)query_tagset to the Foundry job info (job/repo/input/output RIDs, branch) pluscustom_tags, so Snowflake cost can be traced to the jobsave_session_id=True)disable_s3_transfer_acceleration(): workaround for snowflake-connector-python#2317, forces the regional S3 endpoint when egress blocks the global one; on by default,enable_s3_monkeypatch=Falseto opt outTransactionPath,ViewPath,FoundryPathWithBranchIdPackaging, docs, tests:
pip install 'foundry-dev-tools[snowflake]'(also in[full]); Palantir-only modules are imported lazilydocs/examples/fast-snowflake-ingestion.md(usage, limitations, permissions, S3 workaround)snowflakemodules, so no new dev dependency orpdm.lockchangeFor those at Merck who might recognise it: this module was used internally as "FastSnowflakeIngestion" in the SAP sync migration, where we moved away from agent-based syncs. This is a reworked and adapted version of it, made generic for anyone to use.
Checklist