Skip to content

Conversation

@jayzhan211
Copy link
Contributor

@jayzhan211 jayzhan211 commented Mar 16, 2024

Which issue does this PR close?

Parts of #9285

Rationale for this change

What changes are included in this PR?

move array distinct to set_ops

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates labels Mar 16, 2024
/// `make_array` SQL function
/// `make_array_inner` is the implementation of the `make_array` function.
/// Can be used if the expected input and output are ArrayRef
pub(crate) fn make_array_inner(arrays: &[ArrayRef]) -> Result<ArrayRef> {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rename to avoid conflict with function name

@Weijun-H
Copy link
Member

I am considering moving array-except to setop too.

Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@jayzhan211 jayzhan211 marked this pull request as ready for review March 16, 2024 13:31
}

/// `make_array` SQL function
/// `make_array_inner` is the implementation of the `make_array` function.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// `make_array_inner` is the implementation of the `make_array` function.
/// Constructs an array using the input `data` as `ArrayRef`.
/// Returns a reference-counted `Array` instance result.


/// `make_array` SQL function
/// `make_array_inner` is the implementation of the `make_array` function.
/// Can be used if the expected input and output are ArrayRef
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// Can be used if the expected input and output are ArrayRef

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @jayzhan211

Signed-off-by: jayzhan211 <jayzhan211@gmail.com>
@jayzhan211 jayzhan211 merged commit 37253e5 into apache:main Mar 17, 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 Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants