Skip to content

Minor: Add error tests for min/max with 2 arguments#12024

Merged
Dandandan merged 1 commit intoapache:mainfrom
alamb:alamb/test_min_max
Aug 16, 2024
Merged

Minor: Add error tests for min/max with 2 arguments#12024
Dandandan merged 1 commit intoapache:mainfrom
alamb:alamb/test_min_max

Conversation

@alamb
Copy link
Copy Markdown
Contributor

@alamb alamb commented Aug 15, 2024

Which issue does this PR close?

Related to #12011

Rationale for this change

Add test for check in #12016

What changes are included in this PR?

Add slttest

Are these changes tested?

All tests

Are there any user-facing changes?

@github-actions github-actions Bot added the sqllogictest SQL Logic Tests (.slt) label Aug 15, 2024
----
0 1

query error min/max was called with 2 arguments. It requires only 1.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Prior to #12016 this fails with an assert:

     Running bin/sqllogictests.rs (target/debug/deps/sqllogictests-baf44314cb754c4d)
Running "aggregate_skip_partial.slt"
Running "aggregate.slt"
Running "aggregates_topk.slt"
thread 'tokio-runtime-worker' panicked at datafusion/functions-aggregate/src/min_max.rs:71:5:
assertion `left == right` failed
  left: 2
 right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
External error: task 18 panicked
Error: Execution("1 failures")

@Dandandan Dandandan merged commit 57d5e0e into apache:main Aug 16, 2024
@Dandandan
Copy link
Copy Markdown
Contributor

Thanks!

@alamb alamb deleted the alamb/test_min_max branch August 16, 2024 09:54
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