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

[MINOR]: Generate empty column at placeholder exec #8553

Merged
merged 1 commit into from
Dec 15, 2023
Merged

[MINOR]: Generate empty column at placeholder exec #8553

merged 1 commit into from
Dec 15, 2023

Conversation

mustafasrepo
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

Currently, if there is no column at the place holder exec, it generates at least one dummy column. This causes inconsistency in the subsequent schemas for some edge cases. (Where schema of the PlaceHolderExec itself has 0 columns, but generated RecordBatch from this schema has single column.) Thanks @comphead for bringing this to my attention.

What changes are included in this PR?

This PR fixes above mentioned problem.

Are these changes tested?

Yes new test is added. Which is the test in the discussion

Are there any user-facing changes?

@mustafasrepo mustafasrepo changed the title Generate empty column at placeholder exec [MINOR]: Generate empty column at placeholder exec Dec 15, 2023
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Dec 15, 2023
@@ -75,6 +74,8 @@ impl PlaceholderRowExec {
ret
})
.collect(),
// Even if column number is empty we can generate single row.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@alamb alamb merged commit 28e7f60 into apache:main Dec 15, 2023
23 checks passed
@alamb
Copy link
Contributor

alamb commented Dec 15, 2023

Thanks @mustafasrepo and @Dandandan

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.

3 participants