Repository navigation
Require Arrow plugin exports to keep storage values - #11879
connortsui20 wants to merge 1 commit into
Conversation
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>
a38dfd9 to
dc982dc
Compare
Merging this PR will improve performance by 20.66%2 warnings
Performance Changes
Tip Curious why performance improved? Comment Comparing Footnotes
|
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_arrownow 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_arrowin 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_fieldthrough 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.Generated by Claude Code