Repository navigation
Read Arrow rows directly from vectors with per-batch converters - #628
Open
vuanhphung wants to merge 3 commits into
Open
vuanhphung wants to merge 3 commits into
vuanhphung wants to merge 3 commits into
Conversation
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
Signed-off-by: Vu Anh Phung <vu.phung@databricks.com> Co-authored-by: Isaac <no-reply@databricks.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Arrow object materialization spends most CPU repeatedly dispatching types and expanding StructRow proxies: a decoded-batch profile attributes 76% of sampled time to the recursive converter. Both Thrift and kernel results use this path.
Read top-level vectors directly into final rows and resolve scalar converters once per batch. Keep nested conversion and the legacy object path for duplicate/special names unchanged. Values, precision options, logging, disabled materialization and IPC/fetching behavior stay the same.
Verification: 1,831 unit tests pass (agent markers cleared; the unrelated default-environment user-agent failure also reproduces on main), all static checks pass, and 47 live e2e cases plus type/limit/lifecycle checksum matrices pass. Fresh-process live medians below use five interleaved pairs on Node 24; p95/p99 and raw runs are in the factory handoff. Decoded DOUBLE/object CPU: 480 → 45 ms/million rows. Array-mode heap peaks can increase with GC slack; bounded-heap runs still complete.
Adversarial review: converged in round 1; gains and parity independently reproduced, fallback/precision/binary tests strengthened and mutation-checked, array-mode memory caveat documented.
This pull request and its description were written by Isaac.