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 Array Union and Intersect to functions-array #9629

Merged
merged 3 commits into from
Mar 17, 2024

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 Physical Expressions labels Mar 16, 2024
@@ -105,7 +105,8 @@ impl ScalarUDFImpl for MakeArray {
}
}

/// `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
@@ -105,7 +105,8 @@ impl ScalarUDFImpl for MakeArray {
}
}

/// `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.

@@ -105,7 +105,8 @@ impl ScalarUDFImpl for MakeArray {
}
}

/// `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
11 checks passed
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.

3 participants