Skip to content

feat: snowpipe batch status - #6926

Merged
achettyiitr merged 5 commits into
masterfrom
feat.snowpipe-batch-status
May 12, 2026
Merged

achettyiitr merged 5 commits into
masterfrom
feat.snowpipe-batch-status

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Apr 29, 2026 •

Copy link
Copy Markdown
Member

🔒 Scanned for secrets using gitleaks 8.29.1

Description

Adds bulk status polling support for Snowpipe Streaming and integrates it across manager, API adapter, API client, and tests.

  • Added bulk status API plumbing:
    • GetBulkStatus in internal/api/api.go
    • GetBulkStatus in apiadapter.go
    • BulkStatusResponse in internal/model/model.go
    • API interface update in types.go
  • Added config flags:
    • SnowpipeStreaming.bulkStatusEnabled
    • SnowpipeStreaming.bulkStatusChannels
  • Updated polling flow in snowpipestreaming.go:
    • routes polling through bulk path when enabled
    • chunks channel IDs for bulk calls
    • handles channel recovery in bulk mode:
      • notFound => recreate + re-poll
      • invalid status (valid=false) => delete + recreate + re-poll
    • retains existing in-progress/terminal semantics via isInProgress
  • Added integration test configurability:
    • runRudderServer(..., configOverrides...) now accepts runtime config overrides
  • Added new integration scenario:
    • many table (bulk status enabled) in integration_test/snowpipestreaming/snowpipestreaming_test.go

Linear Ticket

  • Resolves INT-5887

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@achettyiitr
achettyiitr force-pushed the feat.snowpipe-batch-status branch 3 times, most recently from 843203b to 6c317e9 Compare April 29, 2026 15:34
@codecov

codecov Bot commented Apr 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.91608% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.78%. Comparing base (73d3bbe) to head (01c32d4).

Files with missing lines Patch % Lines
...tionmanager/snowpipestreaming/snowpipestreaming.go 84.07% 10 Missing and 8 partials ⚠️
...destinationmanager/snowpipestreaming/apiadapter.go 70.00% 2 Missing and 1 partial ⚠️
...ationmanager/snowpipestreaming/internal/api/api.go 90.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6926      +/-   ##
==========================================
- Coverage   80.06%   79.78%   -0.28%     
==========================================
  Files         565      565              
  Lines       63412    63553     +141     
==========================================
- Hits        50772    50707      -65     
- Misses       9646     9840     +194     
- Partials     2994     3006      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the feat.snowpipe-batch-status branch from 6c317e9 to 4901a61 Compare April 29, 2026 16:06

@shekhar-rudder shekhar-rudder left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few concerns — one potential bug around a missing Success check, a resilience question on bulk error handling, and some cleanup items.

🔒 Scanned for secrets using gitleaks 8.29.1
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the feat.snowpipe-batch-status branch from 4f53183 to 3090564 Compare April 30, 2026 20:53
if err != nil {
return nil, nil, fmt.Errorf("failed to get bulk status: %w", err)
}
if !bulkStatusRes.Success {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is snowpipe service setting a top level Success field? Is this the behaviour across all APIs?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr requested a review from shekhar-rudder May 4, 2026 05:44
@achettyiitr
achettyiitr requested a review from ItsSudip May 6, 2026 09:24
@achettyiitr
achettyiitr requested a review from krishna2020 May 11, 2026 16:46
@achettyiitr
achettyiitr merged commit f00dd89 into master May 12, 2026
73 checks passed
@achettyiitr
achettyiitr deleted the feat.snowpipe-batch-status branch May 12, 2026 09:27
This was referenced May 12, 2026
itsmihir pushed a commit that referenced this pull request May 12, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.75.0-rc.1](v1.74.0...v1.75.0-rc.1)
(2026-05-12)


### Features

* snowpipe batch status
([#6926](#6926))
([f00dd89](f00dd89))
* support clickhouse day week month partitions
([#6931](#6931))
([00ff494](00ff494))
* support concurrency during partition migration flushing
([#6929](#6929))
([dd2f658](dd2f658))


### Bug Fixes

* **router:** delays in finding worker slots when event ordering is
disabled
([#6930](#6930))
([a7389f8](a7389f8))
* rsources failed keys batch fails to be inserted with postgres error
21000 ([#6940](#6940))
([3c7a1ec](3c7a1ec))
* salesforce bulk upload null and numeric CSV formatting
([#6923](#6923))
([5e67a45](5e67a45))


### Miscellaneous

* debug snowpipe streaming importing job size
([#6941](#6941))
([73d3bbe](73d3bbe))
* filtering overflow events for snowpipe streaming above 16MB
([#6921](#6921))
([2e5192b](2e5192b))
* pyt managed session
([#6910](#6910))
([c7aa7c4](c7aa7c4))
* remove deprecated fetch-tables endpoint
([#6944](#6944))
([fdb2649](fdb2649))
* sync release v1.74.0 to main branch
([#6920](#6920))
([e844f82](e844f82))
* workflow cleanup
([#6924](#6924))
([da7161d](da7161d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request May 14, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.75.0](v1.74.0...v1.75.0)
(2026-05-12)


### Features

* snowpipe batch status
([#6926](#6926))
([f00dd89](f00dd89))
* support clickhouse day week month partitions
([#6931](#6931))
([00ff494](00ff494))
* support concurrency during partition migration flushing
([#6929](#6929))
([dd2f658](dd2f658))


### Bug Fixes

* **router:** delays in finding worker slots when event ordering is
disabled
([#6930](#6930))
([a7389f8](a7389f8))
* rsources failed keys batch fails to be inserted with postgres error
21000 ([#6940](#6940))
([3c7a1ec](3c7a1ec))
* salesforce bulk upload null and numeric CSV formatting
([#6923](#6923))
([5e67a45](5e67a45))


### Miscellaneous

* debug snowpipe streaming importing job size
([#6941](#6941))
([73d3bbe](73d3bbe))
* filtering overflow events for snowpipe streaming above 16MB
([#6921](#6921))
([2e5192b](2e5192b))
* pyt managed session
([#6910](#6910))
([c7aa7c4](c7aa7c4))
* remove deprecated fetch-tables endpoint
([#6944](#6944))
([fdb2649](fdb2649))
* sync release v1.74.0 to main branch
([#6920](#6920))
([e844f82](e844f82))
* workflow cleanup
([#6924](#6924))
([da7161d](da7161d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@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.

3 participants