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

Port ArrayElem/Slice/PopFront/Back into functions-array #9615

Merged
merged 4 commits into from
Mar 15, 2024

Conversation

jayzhan211
Copy link
Contributor

Which issue does this PR close?

Part of #9285

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Physical Expressions labels Mar 15, 2024
@jayzhan211 jayzhan211 marked this pull request as ready for review March 15, 2024 02:20
@jayzhan211 jayzhan211 requested a review from alamb March 15, 2024 06:54
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.

Looks good -- thank you very much @jayzhan211

Copy link
Contributor

Choose a reason for hiding this comment

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

💯 for a new module

Ok(arrow::array::make_array(data))
}

make_udf_function!(
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be nice to put the macro definitions at the top of the module rather than inline so they are easy to find.

However, it is a minor point

args,
)))
}
}) => Transformed::yes(array_element(*expr, *key)),
Copy link
Contributor

Choose a reason for hiding this comment

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

that is certainly nicer

Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@jayzhan211 jayzhan211 merged commit 81b0a01 into apache:main Mar 15, 2024
23 checks passed
@alamb
Copy link
Contributor

alamb commented Mar 15, 2024

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants