Skip to content

[Rust] Bound replacement dictionary Flight frames - #1188

Draft
mkusumdb wants to merge 2 commits into
mkusumdb/arrow-mux-byte-statsfrom
kusum-madarasu_data/flight-dictionary-frame-bounds
Draft

mkusumdb wants to merge 2 commits into
mkusumdb/arrow-mux-byte-statsfrom
kusum-madarasu_data/flight-dictionary-frame-bounds

Conversation

@mkusumdb

@mkusumdb mkusumdb commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

What changes are proposed in this pull request?

Row slicing retains a dictionary's complete value array, so a large dictionary batch can keep producing oversized Flight messages. Compact dictionaries to the values used by each slice, then check encoded dictionary and record frames with the selected IPC compression before queuing the logical batch. Preserve nulls, key widths, nested values and the existing ACK/recovery boundary; reject an unsplittable row before queuing any records.

Depends on #1186. This branch is based on its multiplexed byte-stats implementation so Vector retains support for stats_exporter with multiplexed Arrow streams. Update Python's Rust lockfile for the newly unconditional arrow-select dependency.

How is this tested?

  • Flight library: 51 passed, including a new none/Zstd/LZ4 frame-bound test with metadata and exact decoded dictionary values.
  • Arrow integration: 115 passed, including dictionary replacement/splitting with partial-ACK suffix recovery and a new two-lane Resend + IPC Zstd + stats_exporter test. The combined test verifies split frames, packed message IDs, records/byte stats and all decoded string values.
  • Strict Clippy passes for Flight all-targets and the Arrow integration target. Changed Rust files are formatted with the repository-provided formatter.
  • Python locked metadata check passes; the lockfile includes arrow-select without changing resolved versions.

These checks use the Databricks Rust 1.98.1 toolchain. No deployment or live flag change is included. Int16 cardinality overflow occurs before the SDK receives a batch and is handled separately in Vector.

@mkusumdb
mkusumdb changed the base branch from main to mkusumdb/arrow-mux-byte-stats November 22, 2026 09:44
@mkusumdb
mkusumdb force-pushed the kusum-madarasu_data/flight-dictionary-frame-bounds branch from 7ff31ec to 6c42cd5 Compare November 22, 2026 09:45
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