Skip to content

chore: sync release v1.89.2 to main branch - #7457

Merged
achettyiitr merged 5 commits into
masterfrom
sync-release-05d5a5e157d0d006defc378f6f27df8e4ffac432
Oct 7, 2026
Merged

achettyiitr merged 5 commits into
masterfrom
sync-release-05d5a5e157d0d006defc378f6f27df8e4ffac432

Conversation

@rudderstack-github-actions

@rudderstack-github-actions rudderstack-github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Description

Syncing patch release v1.89.2 to main branch

↓↓ Please review and edit commit overrides before merging ↓↓

BEGIN_COMMIT_OVERRIDE
fix(warehouse): set explicit lineSep for deltalake csv copy (#7455)
END_COMMIT_OVERRIDE

achettyiitr and others added 4 commits September 29, 2026 16:31
…ped externally (#7434)

# Description

Fixes two Snowpipe Streaming failures when a table is dropped externally
while its channel is still open.

**1. Stale channel + new columns aborts every upload.** The cached (or
Snowpipe service's) channel has the old schema, so we `ALTER TABLE ...
ADD COLUMN` on the dropped table, abort the jobs, and keep reusing the
same channel:
```
adding columns for table T: adding column: abort error, ... 002003 (42S02): Table '...T' does not exist or not authorized.
```
Fix: when adding columns fails, delete the channel and retry once with a
fresh one, which recreates the missing table.

**2. Failed channel recreation is cached after bulk status.**
`handleChannelRecoveryPostBulkStatus` didn't check `Success`, cached a
response with an empty channel ID, then failed with:
```
getBulkChannelStatus.channelIds: must not be empty
```
Fix: return the error instead of caching the response.

**Testing:** unit tests in `channel_test.go` (fail on master), and
verified end to end against Snowflake: dropping a table while events add
a new column now recreates the table instead of aborting.

## Linear Ticket

Resolves INT-7242

## Security

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)
🤖 I have created a release *beep* *boop*
---


##
[1.89.1](v1.89.0...v1.89.1)
(2026-09-29)


### Bug Fixes

* **batchrouter:** recover snowpipe streaming channels for tables
dropped externally
([#7434](#7434))
([2c79aa8](2c79aa8))

---
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>
## Description

Deltalake CSV loads can merge two rows into one when the first row in a
load file has a quoted value containing `\r\n`.

`COPY INTO` reads our CSV load files with `multiLine = 'true'` but no
`lineSep`. In that mode, Databricks guesses the line separator from the
start of the file. If the first row has a quoted value with `\r\n` (e.g.
raw SMTP bounce reasons from Braze `users.messages.email.SoftBounce`),
it picks `\r\n`. The real `\n` row ends written by our Go CSV encoder
are then read as data, and the next row's first column runs into the
last column, `uuid_ts`:

- **ANSI mode on:** `CAST_INVALID_INPUT` on `uuid_ts` (value
`<ts>\n<next row's anonymous_id>`), and the table load is aborted. This
is what Betashares hits on `users_messages_email_soft_bounce` (10
aborted uploads since Jul 5).
- **ANSI mode off:** the load "succeeds", but `uuid_ts` is NULL and the
merged row is lost without any error.

Our encoder always ends rows with `\n`, so this pins `'lineSep' = '\n'`
in both CSV `FORMAT_OPTIONS` blocks: the load COPY and the validation
test-table COPY.

Parquet load files (`Warehouse.deltalake.useParquetLoadFiles`) are not
affected.

## Testing

Reproduced end-to-end in rudder-mini against the Databricks test
warehouse (`ANSI_MODE=false`), sending a 2-event `soft_bounce` batch
whose first event's `bounce_reason` contains `\r\n`:

| build | rows in Databricks | `uuid_ts` | `\r\n` in value |
|---|---|---|---|
| master `d11977948` | 1 of 2 (second row merged into first and lost) |
NULL | became `\n` |
| with this fix | 2 of 2 | populated | kept as `\r\n` |

Integration test: added
`TestIntegration/Load_Table/line_breaks_in_quoted_values`. It's
table-driven over two fixtures written with Go's `encoding/csv`, because
Databricks auto-detects the separator from the first row:
- `testdata/crlf.csv.gz`: row 1 has a quoted `\r\n`
- `testdata/cr.csv.gz`: row 1 has a quoted lone `\r`

Both files also carry a quoted `\n`, embedded quotes, a comma, a leading
space and a mixed value. The test asserts every stored value, then the
row count.

| | crlf_in_first_row | cr_in_first_row |
|---|---|---|
| SQL warehouse, with fix | PASS | PASS |
| SQL warehouse, pre-fix | FAIL (6 of 7 rows lost) | FAIL (6 of 7 rows
lost) |
| All-purpose cluster + `spark.sql.ansi.enabled=true`, with fix | PASS |
PASS |
| All-purpose cluster + `spark.sql.ansi.enabled=true`, pre-fix | FAIL
`CAST_INVALID_INPUT` (customer's error) | FAIL `CAST_INVALID_INPUT` |

The full `Load_Table` group passes with the fix on both the SQL
warehouse and an all-purpose cluster.

CI: cherry-picked #7449 (ECR pull-through cache for openapi-generator),
because the release branch still logs into Docker Hub with the expired
`DOCKERHUB_READONLY_TOKEN`.

- `go build`, `go vet` and `go test -count 1
./warehouse/integrations/deltalake/...` pass

## Linear Ticket

Resolves INT-7282

## Security

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Aris Tzoumas <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
🤖 I have created a release *beep* *boop*
---


##
[1.89.2](v1.89.1...v1.89.2)
(2026-10-07)


### Bug Fixes

* **warehouse:** set explicit lineSep for deltalake csv copy
([#7455](#7455))
([1c7dfc2](1c7dfc2))

---
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>
@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.99%. Comparing base (f424257) to head (a7b9d18).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7457      +/-   ##
==========================================
+ Coverage   84.50%   84.99%   +0.49%     
==========================================
  Files         623      623              
  Lines       62050    62052       +2     
==========================================
+ Hits        52434    52744     +310     
+ Misses       9613     9305     -308     
  Partials        3        3              

☔ View full report in Codecov by Harness.
📢 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.

@achettyiitr
achettyiitr merged commit cc22d18 into master Oct 7, 2026
112 of 114 checks passed
@achettyiitr
achettyiitr deleted the sync-release-05d5a5e157d0d006defc378f6f27df8e4ffac432 branch October 7, 2026 14:34
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.

2 participants