This is an automated email from the ASF dual-hosted git repository.

dheres pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 57d5e0ec0d Minor: Add error tests for min/max with 2 arguments (#12024)
57d5e0ec0d is described below

commit 57d5e0ec0dbeed1bfd6cfa4ebcabcba9a11b3eb5
Author: Andrew Lamb <[email protected]>
AuthorDate: Fri Aug 16 04:43:55 2024 -0400

    Minor: Add error tests for min/max with 2 arguments (#12024)
---
 datafusion/sqllogictest/test_files/aggregate.slt | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/datafusion/sqllogictest/test_files/aggregate.slt 
b/datafusion/sqllogictest/test_files/aggregate.slt
index 322ddcdb04..462acaa266 100644
--- a/datafusion/sqllogictest/test_files/aggregate.slt
+++ b/datafusion/sqllogictest/test_files/aggregate.slt
@@ -1881,6 +1881,12 @@ SELECT MIN(c1), MIN(c2) FROM test
 ----
 0 1
 
+query error min/max was called with 2 arguments. It requires only 1.
+SELECT MIN(c1, c2) FROM test
+
+query error min/max was called with 2 arguments. It requires only 1.
+SELECT MAX(c1, c2) FROM test
+
 # aggregate_grouped
 query II
 SELECT c1, SUM(c2) FROM test GROUP BY c1 order by c1


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to