Skip to content

Require Arrow plugin exports to keep storage values - #11879

Open
connortsui20 wants to merge 1 commit into
developfrom
ct/epic-lamport-s7gsfx
Open

connortsui20 wants to merge 1 commit into
developfrom
ct/epic-lamport-s7gsfx

Conversation

@connortsui20

Copy link
Copy Markdown
Member

The Arrow plugin contract only required a round trip, which says nothing about what the exported Arrow data means to a reader such as DataFusion. A pushed-down comparison runs on the Vortex storage and the same comparison left in DataFusion runs on the exported array, so ArrowExportVTable::execute_arrow now requires the export to have the same nulls as the Vortex array and values that compare the same way as the storage values. This is a documented rule and not a per-plugin opt-in, because every extension plugin in the repository already follows it, and an opt-out can be added later without breaking anyone.

check_arrow in the Arrow test harness checks both rules against the Arrow comparison kernels, so each plugin suite that calls it now runs the check.

Behaviour changes:

  • get_field through extension storage is pushed down when a plugin exports the selected field. ArrowSession::exports_without_plugins, which Push down DataFusion field access on extension types #11639 added for that case, is removed.
  • A literal of an extension type stays in DataFusion unless it exports back to the same Arrow value. The rule covers only the exporter, so this keeps an importer that maps two Arrow values to one Vortex value from changing a result.

Generated by Claude Code

@connortsui20 connortsui20 added the changelog/feature A new feature label Nov 23, 2026 — with Claude
An Arrow plugin can round-trip values while changing the order an Arrow
reader sees. Require exports to preserve nulls and comparable extension
values, and check both rules in the Arrow test harness.

Two exporters can preserve order within their own outputs and still
encode equal storage values differently. Keep plugin-exported fields
selected through extension storage in DataFusion. Check that literals
with extension metadata or nested importers round-trip so lossy imports
cannot change a comparison.

Claude-Session: https://claude.ai/code/session_01J3PQt9ZhAgF2rD6wiqPQ1e
Signed-off-by: Connor Tsui <connor@spiraldb.com>
@connortsui20
connortsui20 force-pushed the ct/epic-lamport-s7gsfx branch from a38dfd9 to dc982dc Compare November 23, 2026 22:19
@codspeed

codspeed Bot commented Nov 23, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 20.66%

2 warnings

⚠️ Walltime results may be unreliable

Some benchmarks used the Walltime instrument outside CodSpeed Macro Runners, which can make the results inconsistent.

Learn more about Macro Runners

See affected benchmarks

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

⚡ 1 improved benchmark
✅ 2051 untouched benchmarks
⏩ 142 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Walltime decode_bitpacked_chunked_avx512[u32, 524288] 21.1 µs 17.5 µs +20.66%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ct/epic-lamport-s7gsfx (dc982dc) with develop (2c0683c)

Open in CodSpeed

Footnotes

  1. 142 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Require Arrow plugin exports to keep values, not only round-trip

1 participant