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: beautify interval display #7554

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

Weijun-H
Copy link
Member

Which issue does this PR close?

Closes #7547

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 physical-expr Physical Expressions label Sep 14, 2023
@@ -1785,4 +1792,20 @@ mod tests {

Ok(())
}

#[test]
fn test_interval_display() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Both test cases result in (...], i.e. they don't really cover the if-else clauses within the formatter. I think having the 4 permutations ((...), [...), [...], (...]) would be nice.

@crepererum
Copy link
Contributor

thank you

@crepererum crepererum merged commit c2fb263 into apache:main Sep 14, 2023
21 checks passed
@alamb
Copy link
Contributor

alamb commented Sep 14, 2023

Thank you @Weijun-H and @crepererum ❤️

cc @ozankabak and @wjones127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
physical-expr Physical Expressions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Display for Interval to output set notation representation
3 participants