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: improve Display of output ordering of StreamTableExec #9225

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Minor: improve Display of output ordering of StreamTableExec #9225

merged 2 commits into from
Feb 15, 2024

Conversation

mustafasrepo
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

What changes are included in this PR?

In other sources such as CsvExec, when there is more than 1 valid ordering at the source; all orderings are displayed at the plan. For instance, if CsvExec is ordered by [a ASC, b ASC], [c ASC] output ordering will be displayed as output_orderings=[[a@1 ASC NULLS LAST, b@2 ASC NULLS LAST], [c@3 ASC NULLS LAST].

However, currently output ordering of the StreamTableExec is displayed as output_ordering=[a@1 ASC NULLS LAST, b@2 ASC NULLS LAST] where only one of the valid orderings is displayed. This PR changes this behaviour to replicate behaviour of other sources.

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added core Core DataFusion crate sqllogictest SQL Logic Tests (.slt) labels Feb 14, 2024
@alamb alamb changed the title Change Output ordering of StreamTableExec Minor: improve Display of output ordering of StreamTableExec Feb 15, 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.

Thank you @mustafasrepo -- this looks like a great improvement to me 🙏

@alamb alamb merged commit 85be1bc into apache:main Feb 15, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants