Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Oct 18, 2021

Which issue does this PR close?

Re #1070

Rationale for this change

Sketch out an alternate algorithm for part of #1128 by @pjmore

What changes are included in this PR?

Sketch of a recursive evaluator using code from @pjmore

This has the benefit of a simpler API (as the check for evaluability and the actual evaluation are done as part of the same pass)

Are there any user-facing changes?

not yet

@alamb alamb changed the title WIP: Alternate implementation of partial evaluation WIP: Alternate implementation of partial evaluation / generalized constant folding Oct 18, 2021
@alamb alamb force-pushed the alamb/scalar-evaluation branch from 15cf62d to 42d99ca Compare October 19, 2021 19:35
@alamb
Copy link
Contributor Author

alamb commented Oct 20, 2021

This turns out to be something that will help IOx so I am going to keep hacking on it

In case anyone else is interested, we have some rewrite passes that may end up introducing predicates like ('foo' == 'bar' AND ...) which it would be great for DataFusion to be able to simplify

@alamb
Copy link
Contributor Author

alamb commented Oct 20, 2021

I plan to "productionize" this approach in #1153, so closing this PR

@alamb alamb closed this Oct 20, 2021
@alamb alamb deleted the alamb/scalar-evaluation branch August 8, 2023 20:11
unkloud pushed a commit to unkloud/datafusion that referenced this pull request Mar 23, 2025
## Which issue does this PR close?

Part of apache/datafusion-comet#372 and apache/datafusion-comet#551

## Rationale for this change

To be ready for Spark 4.0

## What changes are included in this PR?

This PR enables more Spark 4.0 tests that were fixed by recent changes

## How are these changes tested?

tests enabled
H0TB0X420 pushed a commit to H0TB0X420/datafusion that referenced this pull request Oct 7, 2025
* Intermediate work adding ffi scalar udf

* Add scalar UDF and example

* Add aggregate udf via ffi

* Initial commit for window ffi integration

* Remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant