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: Add tests for types of arithmetic operator output types #14250

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Jan 23, 2025

Which issue does this PR close?

Rationale for this change

While reviewing #14223 I misinterpreted the impact of a change.
@jonahgao straightened me out in https://github.com/apache/datafusion/pull/14223/files#r1926245243 and had a good suggestion of how to test the behavior (don't overly extend the output types)

So let's add some tests to automatically ensure the coercion is working correctly

What changes are included in this PR?

Add tests that show the output type of arithmetic operations with different input types

Are these changes tested?

It is only tests, no behavior change

Are there any user-facing changes?

@alamb alamb marked this pull request as ready for review January 23, 2025 14:37
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Jan 23, 2025
Copy link
Member

@jonahgao jonahgao left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @alamb

@jonahgao jonahgao merged commit a534e85 into apache:main Jan 24, 2025
25 checks passed
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.

2 participants