datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Latest substrait patch release does not compile against DF

Open westonpace opened this issue 8 months ago • 5 comments

Describe the bug

Substrait released 0.62.3 which unfortunately has breaking changes from 0.62.2. Datafusion depends on 0.62 and so it will allow 0.62.3 but will fail to compile.

To Reproduce

Check out a clean repo and try to compile datafusion-substrait.

Expected behavior

Compiles correctly

Additional context

The error is:

error[E0004]: non-exhaustive patterns: `&RexType::Lambda(_)` and `&RexType::LambdaInvocation(_)` not covered

westonpace avatar Mar 06 '26 17:03 westonpace

Hi @westonpace!

I'd like to work on this issue. The fix seems straightforward adding exhaustive match arms for &RexType::Lambda(_) and &RexType::LambdaInvocation(_) in the relevant match expressions within datafusion-substrait.

Could I be assigned to this issue? Thanks!

KARTIK64-rgb avatar Mar 06 '26 18:03 KARTIK64-rgb

Go for it. I think there is one other compile error I didn't list in the original description (the field type_reference was removed from UserDefined) so it might be slightly more but hopefully shouldn't be too bad.

Could I be assigned to this issue?

From the contributor's guide

If you want to work on an issue which is not already assigned to someone else and there are no comment indicating that someone is already working on that issue then you can assign the issue to yourself by submitting a single word comment take. This will assign the issue to yourself. However, if you are unable to make progress you should unassign the issue by commenting a single word untake.

westonpace avatar Mar 06 '26 19:03 westonpace

take

KARTIK64-rgb avatar Mar 07 '26 05:03 KARTIK64-rgb

Copying my comment from here:

This release of substrait-rs breaks semvar compatibility. This was an oversight on my end due to the fact that release-plz didn't detect a submodule bump as a breaking change. We are investigating performing cargo yank on this release. Would that solution work for others here?

benbellick avatar Mar 09 '26 17:03 benbellick

i believe, we can close this as problematic version has been yanked https://github.com/apache/datafusion/pull/20785#issuecomment-4036421108

milenkovicm avatar Mar 11 '26 09:03 milenkovicm