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(substrait) Update to substrait v0.64.0 #105

Merged
merged 3 commits into from
Jan 15, 2025

Conversation

srikrishnak
Copy link
Contributor

  • Update proto definition to v0.64.0
  • Fixed FetchRel to use OffsetMode and CountMode

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 72.72727% with 6 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@be0b09b). Learn more about missing BASE report.
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
plan/plan.go 57.14% 4 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #105   +/-   ##
=======================================
  Coverage        ?   62.66%           
=======================================
  Files           ?       44           
  Lines           ?    10186           
  Branches        ?        0           
=======================================
  Hits            ?     6383           
  Misses          ?     3517           
  Partials        ?      286           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* Update proto definition to v0.64.0
* Fixed FetchRel to use OffsetMode and CountMode
go.mod Outdated Show resolved Hide resolved
plan/builders.go Outdated Show resolved Hide resolved
@@ -411,10 +411,24 @@ func RelFromProto(rel *proto.Rel, reg expr.ExtensionRegistry) (Rel, error) {
return nil, fmt.Errorf("error getting input to FetchRel: %w", err)
}

var offset int64
if off, ok := rel.Fetch.OffsetMode.(*proto.FetchRel_Offset); ok {
Copy link
Member

Choose a reason for hiding this comment

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

It'd be useful to have tests that show we can work with both the new and old way of specifying FetchRel.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@EpsilonPrime I wanted to defer adding the new way to a separate PR. This PR should be only update to new version and no change to functionality. Is that fine? Thanks

plan/relations.go Outdated Show resolved Hide resolved
plan/relations.go Outdated Show resolved Hide resolved
@EpsilonPrime EpsilonPrime merged commit 18871fb into substrait-io:main Jan 15, 2025
7 checks passed
@srikrishnak srikrishnak deleted the substrait-go-proto branch January 15, 2025 04:48
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