Skip to content

fix: column indices in FFI partition evaluator #16480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

timsaucer
Copy link
Contributor

@timsaucer timsaucer commented Jun 20, 2025

Which issue does this PR close?

Rationale for this change

There is a bug in how we compute the indices to create a schema for. It misses the last index and it can erroneously create an index 0 when none exists.

What changes are included in this PR?

Properly handle the None case when finding max index.

Are these changes tested?

Unit test will be added before marking this PR ready. Tested in datafusion-python.

Are there any user-facing changes?

No

@github-actions github-actions bot added the ffi Changes to the ffi crate label Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ffi Changes to the ffi crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic in FFI UDWF when using wrapping lead function
1 participant