Skip to content

feat(datafusion): expose one-step expression conversion - #11506

Open
danking wants to merge 1 commit into
developfrom
dk/one-step-expression-converter
Open

danking wants to merge 1 commit into
developfrom
dk/one-step-expression-converter

Conversation

@danking

@danking danking commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Expose try_convert_node(expr, schema, session), returning a NodeConversion with the selected DataFusion children and an ExpressionConstructor. Callers own recursion and can combine native parents with custom child conversions.

Make the change in the existing conversion cases and helper methods: select child references and defer construction in NodeConversion::fixed / NodeConversion::new. Keep the existing dispatch order, combined string-function and length branches, Arrow and literal import helpers, and schema validation in place. A small recursive wrapper preserves DefaultExpressionConverter's existing public API and lambda traversal. There is no extracted convert_node implementation in this PR.

Field paths remain configuration and repeated IN literals are deduplicated before traversal. Focused tests cover custom recursion, selected inputs, IN deduplication, incompatible children, arity errors, and CASE ordering.

All expression extraction and the typed Convertible reorganization are in follow-up #11507. Neither PR changes schema name/index semantics.

Inspected the source diffs. Builds, tests, linting, and formatting commands were not run.

@danking danking added the changelog/feature A new feature label Nov 16, 2026
@danking
danking force-pushed the dk/one-step-expression-converter branch from dfa887b to aac7b1e Compare November 16, 2026 20:12
@danking danking changed the title feat(datafusion): expose one-step expression conversion feat(datafusion): add one-step Convertible interface Nov 16, 2026
@danking
danking force-pushed the dk/one-step-expression-converter branch from aac7b1e to 08a9966 Compare November 16, 2026 21:00
@danking danking changed the title feat(datafusion): add one-step Convertible interface feat(datafusion): expose one-step expression conversion Nov 16, 2026
@danking
danking force-pushed the dk/one-step-expression-converter branch 3 times, most recently from 65117ce to cd0142b Compare November 19, 2026 18:08
@danking
danking marked this pull request as ready for review November 19, 2026 19:13
@codspeed

codspeed Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 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

✅ 2052 untouched benchmarks
⏩ 142 skipped benchmarks1


Comparing dk/one-step-expression-converter (2ec7528) with develop (bc4bbbe)

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. ↩

@danking
danking requested a review from robert3005 November 23, 2026 22:20
Signed-off-by: Daniel King <dan@spiraldb.com>
@danking
danking force-pushed the dk/one-step-expression-converter branch from cd0142b to 2ec7528 Compare November 23, 2026 22:29

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.

1 participant