This is an automated email from the ASF dual-hosted git repository. zhenchen pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/calcite.git
commit f5bcf6802f3175c97e6f707a9509c6cc28d7848e Author: Michal Stutzmann <[email protected]> AuthorDate: Tue Aug 26 17:47:33 2025 +0200 Test exception messages --- .../test/java/org/apache/calcite/sql/type/FunctionSqlTypeTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/test/java/org/apache/calcite/sql/type/FunctionSqlTypeTest.java b/core/src/test/java/org/apache/calcite/sql/type/FunctionSqlTypeTest.java index d9bc5e0c9d..9c58170cd8 100644 --- a/core/src/test/java/org/apache/calcite/sql/type/FunctionSqlTypeTest.java +++ b/core/src/test/java/org/apache/calcite/sql/type/FunctionSqlTypeTest.java @@ -46,13 +46,13 @@ public class FunctionSqlTypeTest { @Test void testFailsOnNullParameterType() { assertThrows(NullPointerException.class, () -> { new FunctionSqlType(null, returnType); - }); + }, "parameterType"); } @Test void testFailsOnNonStructParameterType() { assertThrows(IllegalArgumentException.class, () -> { new FunctionSqlType(nonStructParameterType, returnType); - }); + }, "ParameterType must be a struct"); } @Test void testFailsOnNullReturnType() {
