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

feat: use Immutables for Argument subclasses #179

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

vbarua
Copy link
Member

@vbarua vbarua commented Sep 14, 2023

allows for equality comparisons of Argument subclasses

BREAKING CHANGE: EnumArgument, TypeArgument and ValueArgument are now abstract

allows for equality comparisons of Argument subclass

BREAKING CHANGE: EnumArgument, TypeArgument and ValueArgument are now
abstract
@vbarua
Copy link
Member Author

vbarua commented Sep 14, 2023

I was trying to compare plans and noticed that the Argument subclasses didn't implement equals. Updated them to use Immutable like everything else in the file uses.

Determined required fields based on:
https://github.com/substrait-io/substrait/blob/f2bfe15585943a137fafa560401e0cf0266c0650/text/simple_extensions_schema.yaml#L91-L123

@vbarua vbarua merged commit edfc65f into main Sep 15, 2023
7 checks passed
@vbarua vbarua deleted the vbarua/immutable-arguments branch September 15, 2023 15:52
ajegou pushed a commit to ajegou/substrait-java that referenced this pull request Mar 29, 2024
allows for equality comparisons of Argument subclasses

BREAKING CHANGE: EnumArgument, TypeArgument and ValueArgument are now
abstract
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.

2 participants