Skip to content
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

bug: fix vist of nested struct #150

Merged
merged 2 commits into from
Aug 17, 2023

Conversation

MasseGuillaume
Copy link
Contributor

@MasseGuillaume MasseGuillaume commented Jun 5, 2023

This test case will hit:

throw new UnsupportedOperationException(
"RexFieldAccess for other than RexCorrelVariable not supported");

since fieldAccess.getReferenceExpr() is a RexFieldAccess

@MasseGuillaume MasseGuillaume force-pushed the nested-field-access-bug branch 4 times, most recently from 4c43415 to b4ea5cf Compare July 12, 2023 15:48
@MasseGuillaume MasseGuillaume changed the title bug: fix vist of nested struct (WIP) bug: fix vist of nested struct Jul 12, 2023
@MasseGuillaume MasseGuillaume marked this pull request as ready for review July 12, 2023 15:49
@MasseGuillaume MasseGuillaume force-pushed the nested-field-access-bug branch 2 times, most recently from e346ce7 to 4d3e544 Compare July 12, 2023 16:40
also fix a bug in ExpressionProtoConverter where we don't keep any of the
segments of a nested structure
@MasseGuillaume
Copy link
Contributor Author

Ready for review!

@MasseGuillaume
Copy link
Contributor Author

@jacques-n if you can review this PR, your feedback would be greatly appreciated.

Copy link
Collaborator

@jacques-n jacques-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well. I spent more time on the test cases than actual code.

@vbarua vbarua merged commit 8f4f32b into substrait-io:main Aug 17, 2023
EpsilonPrime added a commit to substrait-io/substrait that referenced this pull request Nov 22, 2023
ajegou pushed a commit to ajegou/substrait-java that referenced this pull request Mar 29, 2024
* feat: add support for nested structs in RexExpressionConverter
* fix: ExpressionProtoConverter did not keep segments of nested structs
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.

3 participants