Repository navigation
Move scalar functions out of vortex-array into vortex-functions - #10762
Conversation
714ed9d to
fd2bbf1
Compare
Merging this PR will regress 1 benchmark2 warnings
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
0713434 to
e33c436
Compare
595165d to
7644dd2
Compare
dcaa482 to
9383bb2
Compare
9383bb2 to
29fe7c3
Compare
vortex-array keeps the scalar function machinery (the `ScalarFnVTable` trait,
binding, reduction, execution, the session registry and kernel registry) and
the few functions its own arrays, validity and expressions are built on:
literal, get_item, pack and select, is_null, is_not_null, not and the binary
operators, and cast, mask and fill_null, which canonical arrays apply to their
own children. That module is renamed from `scalar_fn::fns` to
`scalar_fn::builtin`, matching `ArrayBuiltins`. Select stays because get_item
reads through a selection. Every other scalar function moves to the new
`vortex-functions` crate:
- byte_length, case_when, ext_storage, list_length, list_sum, list_transform,
merge, replace_time_zone, dynamic, dynamic_expression, stat, between, like,
list_contains, variant_get, is_nan and zip, with their expression
constructors in `vortex_functions::expr` (and `expr::bound`)
- the kernels and parent-reduce rules for vortex-array's encodings, including
`Widen`'s between and zip kernels, which `vortex_functions::initialize`
registers with a session's kernel registry
- the `ArrayBuiltins`/`ExprBuiltins` methods for the moved functions, which
become the `ArrayFunctions`/`ExprFunctions` extension traits
`ArrayHaystack`, `LazyBitBufferBuilder`,
`DeduplicatedBuffers::{extend_from_iter, finish}`, `ListScalar::element_values`,
`is_not_null_node`, `build_row_comparator`, `merge_typed_scalar_as_variant` and
the `Widen` compute helpers become public for the moved kernels, and
`ForeignExtDType` is public under `_test-harness` for the moved tests.
The umbrella crate re-exports the moved constructors under `vortex::expr` and
the crate as `vortex::functions`. vortex-array's integration tests and benches
use vortex-functions as a dev-dependency.
The CodSpeed shard plan picks up the benchmarks that move to `vortex-functions`;
their recorded counts and durations move with them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ps4mp7KF5c4p66aoSoXx5j
Signed-off-by: Robert Kruszewski <robert@spiraldb.com>
29fe7c3 to
a1acbe1
Compare
|
Posted by Claude Opus 5.5 on Will's behalf. This is from a review of the open PR backlog. This is mostly mechanical, so the main cost is the rebase. It conflicts with
|
Move the list_contains rules for Dict and RunEnd needles from develop into vortex-functions, and update paths in code that develop added to use the moved functions. Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
There was a problem hiding this comment.
Note
Newer findings are available below. Devin Review posted a newer report on this PR, in addition to the findings presented here.
🔍 Devin Review: 3 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
…cycle Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Signed-off-by: Will Manning <will@spiraldb.com> Co-Authored-By: Will Manning <will@spiraldb.com>
Develop moved the scalar functions out of vortex-array into vortex-functions (#10762). The Variant layout was written before that move, so this ports it: `variant_shred` and its strict and union forms are registered by vortex-functions, the `variant_shred` expression is in `vortex_functions::expr`, and `decode_for_repeated_extraction` moves next to `variant_get`, because vortex-array cannot name `VariantGet`. It also drops a second copy of `element_metadata` in the Parquet Variant array, which the rebase onto #11505 left behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Will Manning <will@spiraldb.com>
Splits non-core scalar functions out of
vortex-arrayinto a separatevortex-functionscrate to reducevortex-array's footprint and compile surface as part of breaking upvortex-array(followed up by #10768 and #10769).vortex-arraykeeps the scalar function machinery (theScalarFnVTabletrait, binding, reduction, execution, the session registry and kernel registry) and the few functions its own arrays, validity and expressions are built on: literal, get_item, pack and select, is_null, is_not_null, not and the binary operators, and cast, mask and fill_null, which canonical arrays apply to their own children. That module is renamed fromscalar_fn::fnstoscalar_fn::builtin, matchingArrayBuiltins. Every other scalar function moves to the newvortex-functionscrate:vortex_functions::expr(andexpr::bound)Widen's and the zip-backed nestedfill_nullkernels for struct, list, fixed-size list, and map arrays), whichvortex_functions::initializeregisters with the session's kernel registryArrayBuiltins/ExprBuiltinsmethods for the moved functions, which become theArrayFunctions/ExprFunctionsextension traitsArrayHaystack,LazyBitBufferBuilder,DeduplicatedBuffers::{extend_from_iter, finish},ListScalar::element_values,is_not_null_node,build_row_comparator,merge_typed_scalar_as_variant,FillNull::{supports_dtype, short_circuit}, and theWidencompute helpers become public for the moved kernels;ForeignExtDTypeis public under_test-harnessfor the moved tests.Breaking change: callers that construct a
VortexSessionby hand (instead of usingVortexSession::default()) lose the moved scalar functions, their kernels, and nestedfill_nullsupport for struct/list/fixed-size-list/map arrays unless they callvortex_functions::initialize.