-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support array flatten sql function
#7239
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
Conversation
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
izveigor
left a comment
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.
LGTM! Thanks, @jayzhan211!
alamb
left a comment
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 agree -- this looks great @jayzhan211 thank you
And thank you for the review @izveigor
| indexes: OffsetBuffer<i32>, | ||
| ) -> OffsetBuffer<i32> { | ||
| let buffer = offsets.into_inner(); | ||
| let offsets: Vec<i32> = indexes.iter().map(|i| buffer[*i as usize]).collect(); |
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 is a very nice implementation 👌
flatten sql function
Which issue does this PR close?
Closes #6995
Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?