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

Fix NULL values in FixedSizeList creation #9141

Merged
merged 3 commits into from
Feb 7, 2024

Conversation

Weijun-H
Copy link
Member

@Weijun-H Weijun-H commented Feb 6, 2024

Which issue does this PR close?

Closes #9094

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 the sqllogictest SQL Logic Tests (.slt) label Feb 6, 2024
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 -- this looks great

cc @jayzhan211

let capacity = Capacities::Array(arrays.iter().map(|arr| arr.len()).sum());
let capacity = Capacities::Array(
arrays
.iter()
Copy link
Contributor

Choose a reason for hiding this comment

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

was thinking if filter_map will be handy here to avoid double iteration?

arrays.iter().filter_map(|arr| {if arr.is_null(0) {None} else Some(arr.len()) })

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

@alamb alamb merged commit 55720a4 into apache:main Feb 7, 2024
22 checks passed
@alamb
Copy link
Contributor

alamb commented Feb 7, 2024

Thanks again @Weijun-H and @jayzhan211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support create a FixedSizeList Table with NULL Column
4 participants