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: column support for array_dims, array_ndims, cardinality and array_length #6864

Merged
merged 5 commits into from
Jul 9, 2023
Merged

feat: column support for array_dims, array_ndims, cardinality and array_length #6864

merged 5 commits into from
Jul 9, 2023

Conversation

izveigor
Copy link
Contributor

@izveigor izveigor commented Jul 6, 2023

Which issue does this PR close?

Part of #6804
Closes #6693

Rationale for this change

This is the second PR for solving the column issue.

What changes are included in this PR?

Four array functions now start to support column data:
array_dims,
array_ndims,
cardinality,
array_length

Are these changes tested?

Yes

Are there any user-facing changes?

Yes

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Physical Expressions core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Jul 6, 2023
@izveigor
Copy link
Contributor Author

izveigor commented Jul 6, 2023

@alamb Ready for review.
And can you reopen the issue: #6804. I made a mistake in previous PR by writting "Closes" instead of "Part of".

@alamb alamb mentioned this pull request Jul 6, 2023
11 tasks
@alamb
Copy link
Contributor

alamb commented Jul 7, 2023

Thanks @izveigor -- I plan to review this over the weekend (also I found #6887 which is related perhaps). I can't keep up with all the structured array goodness you and @jayzhan211 are throwing our way!

@alamb
Copy link
Contributor

alamb commented Jul 7, 2023

🤔 maybe you and @jayzhan211 could potentially review each other's PRs initially?

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 @izveigor -- I took a look through this PR and while I don't understand the entire thing I think it is a step forward and we should merge it in.

I think this PR has a conflict but once that is resolved I'll plan to merge

@alamb
Copy link
Contributor

alamb commented Jul 9, 2023

Thank you @jayzhan211 for the review

@alamb alamb merged commit 6857d6d into apache:main Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate logical-expr Logical plan and expressions physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: array_length only return 1 element
3 participants