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: support largelist in array_slice #8561

Merged
merged 3 commits into from
Dec 17, 2023

Conversation

Weijun-H
Copy link
Member

@Weijun-H Weijun-H commented Dec 15, 2023

Which issue does this PR close?

Parts #8185

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt) labels Dec 15, 2023
@Weijun-H Weijun-H mentioned this pull request Dec 15, 2023
19 tasks
let values = list_array.values();
fn general_array_slice<O: OffsetSizeTrait, T: ArrowNumericType<Native = i64>>(
array: &GenericListArray<O>,
from_array: &PrimitiveArray<T>,
Copy link
Contributor

@jayzhan211 jayzhan211 Dec 16, 2023

Choose a reason for hiding this comment

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

T: ArrowNumericType<Native = i64>

it seems like we just need i64array here
How about use Int64Aray?

@Weijun-H Weijun-H requested a review from jayzhan211 December 16, 2023 23:08
Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

Thanks @Weijun-H and @jayzhan211

@alamb alamb merged commit fc6cc48 into apache:main Dec 17, 2023
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants