Skip to content

fix(copy): raise CSV record limit to 64 MiB - #1164

Merged
EDsCODE merged 2 commits into
mainfrom
codex/increase-copy-max-line-size
Sep 9, 2026
Merged

fix(copy): raise CSV record limit to 64 MiB#1164
EDsCODE merged 2 commits into
mainfrom
codex/increase-copy-max-line-size

Conversation

@EDsCODE

@EDsCODE EDsCODE commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

A billing sync now produces a valid CSV record slightly larger than Duckgres's hardcoded 10 MiB MAX_LINE_SIZE, causing every Fivetran retry to fail during DuckDB parsing. Raise the limit to 64 MiB, document the new per-record maximum, and add a DuckDB-backed regression test that copies and verifies a single 11 MiB value.

Validation:

  • Red: the new regression test failed at the previous 10 MiB limit with Maximum line size of 10485760 bytes exceeded
  • Green: focused COPY tests pass
  • just test-unit
  • just lint (0 issues, run from an isolated clean worktree because unrelated untracked local Iceberg tests do not compile in the shared checkout)
  • Focused COPY integration tests: go test ./tests/integration -run '^TestCopyFromStdin' -count=1

The complete integration package has a separate pre-existing failure outside this change; the COPY-focused integration tests pass.

@EDsCODE
EDsCODE marked this pull request as ready for review September 9, 2026 12:23
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

Test Impact Plan

Deterministic summary of how this PR changes tests, CI runners, and coverage-risk signals.

Summary

Area Added Changed Deleted
Test files 0 1 0
E2E/journey files 0 0 0
Workflow files 0 0 0

Signals

  • Test cases: +1 / -0
  • Assertions: +7 / -0
  • Skips or known failures added: 0
  • Workflow continue-on-error added: 0
  • Workflow path filters added: 0
  • Test commands removed from justfile: 0
  • E2E/journey retry lines added: 0

Coverage risk: neutral or increased

No coverage-reduction warnings detected.

@EDsCODE
EDsCODE merged commit 68a0871 into main Sep 9, 2026
35 checks passed
@EDsCODE
EDsCODE deleted the codex/increase-copy-max-line-size branch September 9, 2026 13:23
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.

1 participant