Repository navigation
Conversation
Signed-off-by: Daniel King <dan@spiraldb.com>
Merging this PR will not alter performance2 warnings
Comparing Footnotes
|
Signed-off-by: Daniel King <dan@spiraldb.com>
Signed-off-by: Daniel King <dan@spiraldb.com>
|
@claude review |
|
Claude finished @danking's task in 1m 20s —— View job Review of #11431: typed DataFusion expression shim
The design is solid. It keeps decimal outputs in DF, rejects live, volatile and async expressions, checks the output type at runtime with 1. Advisory mode swallows input execution errors, not just DF evaluation errors (worth fixing)
So a corrupt segment or a type mismatch in the shim would silently disable the filter instead of failing the query. The PR description promises "retains rows on optional-filter evaluation failure". I'd narrow the fallback to that: convert the inputs and build the batch with The There is also no direct test of advisory behavior in this PR. Nothing checks that a DF error becomes all- 2. Ambiguous column names give inconsistent results: an error in one path,
|
Signed-off-by: Daniel King <dan@spiraldb.com>
Signed-off-by: Daniel King <dan@spiraldb.com>
DataFusion fragments that Vortex cannot execute natively can run inside a typed, process-local
df_expressionScalarFn. It preserves result types, nullability, Arrow field metadata and captured runtime state. It exports referenced inputs; higher-order functions retain the original input layout to preserve lambda parameter indices.The public API accepts synchronous, non-volatile, static physical expressions. Live filters use snapshots in the converter integration. Ambiguous column names and unsupported result types decline conversion; invalid column bindings error. Decimal outputs remain in DataFusion, while decimal intermediates in other result types are allowed. The expression cannot be serialized.
Exact evaluation propagates errors. Internal Boolean advisory evaluation retains rows only when DF
evaluatereturns an error; input conversion, batch construction and our output conversion/type/length checks still fail the query. The fallback uses a native constant-true array with the declared nullability.Focused tests cover typed results, nullable hash lookups, a real DF-created ArrayMap, binding errors, eligibility, extension metadata and advisory fallback behavior. The latest review fixes have source review in the designated Codex review chat; builds, tests and formatters were not rerun for these fixes.
Supersedes #11426. Converter integration: #11669. Independent advisory conversion API: #11667.
AI assistance: prepared with Codex.