feat: prepare snowflake and cron service for snowflake data export [CM-945]#3833
Merged
feat: prepare snowflake and cron service for snowflake data export [CM-945]#3833
Conversation
Contributor
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
1 similar comment
Contributor
|
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability. Example:
Projects:
Please add a Jira issue key to your PR title. |
themarolt
approved these changes
Feb 10, 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.
This pull request introduces a new scheduled job to export data from Snowflake to S3 and significantly refactors the Snowflake client to support programmatic access token authentication in addition to key-pair authentication. It also updates dependencies to use the latest Snowflake SDK. The changes improve flexibility, security, and automation for Snowflake data exports.
Snowflake S3 Export Job:
snowflakeS3Export.job.ts) that exports batches of data from Snowflake to S3 as Parquet files, supporting incremental exports based on the last run timestamp, and tracks progress using Redis.Snowflake Client Refactor:
SnowflakeClientto support both programmatic access token and key-pair authentication, using a new configuration interface and dynamic connection options. [1] [2]fromTokenmethod toSnowflakeClientfor convenient instantiation using environment variables for token-based authentication.Dependency Updates:
snowflake-sdkdependency from version^1.14.0to^2.3.3to ensure compatibility with new features and authentication methods.@crowd/snowflakeas a dependency to the cron service to enable use of the new client and job.Note
Medium Risk
Touches data-export infrastructure and Snowflake authentication/connection setup; failures could affect scheduled exports or connectivity, though the changes are localized and additive.
Overview
Introduces a new cron-service job to export Snowflake query results to S3 (Parquet), intended to run incrementally and track progress/state between runs.
Refactors
@crowd/snowflake’sSnowflakeClientto support either key-pair JWT auth or programmatic access token auth (new config union +fromToken()helper), and bumpssnowflake-sdkto^2.3.3. The cron service now depends on@crowd/snowflakeand adds S3/Parquet-related dependencies needed for the export flow.Written by Cursor Bugbot for commit 5f98fa2. This will update automatically on new commits. Configure here.