Skip to content

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
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