-
Notifications
You must be signed in to change notification settings - Fork 155
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
refactor(functions): converting limit to use arrow arrays #570
Conversation
functions/transformations/limit.go
Outdated
@@ -155,7 +155,7 @@ func (t *limitTransformation) Process(id execute.DatasetID, tbl flux.Table) erro | |||
} | |||
n -= count | |||
lcr := sliceColReader{ | |||
ColReader: cr, | |||
ColReader: arrow.ColReader(cr), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong to me 😅
Is there any other method that allows to reslice an arrow array and append it as column?
Should I stick with converting it manually to a slice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The arrow packages has ways to create slices from arrow arrays https://godoc.org/github.com/apache/arrow/go/arrow#example-package--Float64Slice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a similar comment here: #566 (review)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should learn to browse godocs 😅 Thank you!
Must be merged after #575 Is there a better way to specify dependencies between PRs? |
@jsternberg this PR now uses adam's new testing functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#639 has been merged so it is safe to slice arrow arrays.
Fixes #508
Done checklist