Skip to content

Handle empty rows for array_sort#10786

Merged
jayzhan211 merged 1 commit intoapache:mainfrom
jayzhan211:array-sort-empty
Jun 4, 2024
Merged

Handle empty rows for array_sort#10786
jayzhan211 merged 1 commit intoapache:mainfrom
jayzhan211:array-sort-empty

Conversation

@jayzhan211
Copy link
Contributor

@jayzhan211 jayzhan211 commented Jun 4, 2024

Which issue does this PR close?

Closes #10772.

Rationale for this change

If the row fail to match the filter condition, it has empty rows (row count is 0), so we should handle this edge case

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 Jun 4, 2024
Signed-off-by: jayzhan211 <[email protected]>
@jayzhan211 jayzhan211 marked this pull request as ready for review June 4, 2024 06:28
@jayzhan211
Copy link
Contributor Author

Thanks @Dandandan !

@jayzhan211 jayzhan211 merged commit 6a0a2dc into apache:main Jun 4, 2024
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
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.

array_sort fails if input batch is empty

2 participants