This is an automated email from the ASF dual-hosted git repository. zhenchen pushed a commit to branch revert-4501-calcite-7141 in repository https://gitbox.apache.org/repos/asf/calcite.git
commit 1db8af1ddbda9556fa2e7b1b21be5d39ebdc17fb Author: Zhen Chen <[email protected]> AuthorDate: Sat Sep 6 19:58:47 2025 +0800 Revert "Add more tests" This reverts commit 6edc10cda01c2915a4995ec961c90a41ff1d77ee. --- .../calcite/sql/type/FunctionSqlTypeTest.java | 22 +--------------------- 1 file changed, 1 insertion(+), 21 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..3f780b3ecf 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 @@ -25,7 +25,6 @@ import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertThrows; /** * Tests for {@link FunctionSqlType}. @@ -38,30 +37,11 @@ public class FunctionSqlTypeTest { sqlTypeFactory.createStructType( ImmutableList.of(sqlTypeFactory.createSqlType(SqlTypeName.BOOLEAN)), ImmutableList.of("field1")); - final RelDataType nonStructParameterType = sqlTypeFactory.createSqlType(SqlTypeName.BOOLEAN); final RelDataType returnType = sqlTypeFactory.createSqlType(SqlTypeName.BOOLEAN); final FunctionSqlType functionSqlType = new FunctionSqlType(parameterType, returnType); - @Test void testFailsOnNullParameterType() { - assertThrows(NullPointerException.class, () -> { - new FunctionSqlType(null, returnType); - }); - } - - @Test void testFailsOnNonStructParameterType() { - assertThrows(IllegalArgumentException.class, () -> { - new FunctionSqlType(nonStructParameterType, returnType); - }); - } - - @Test void testFailsOnNullReturnType() { - assertThrows(NullPointerException.class, () -> { - new FunctionSqlType(parameterType, null); - }); - } - - @Test void testGetParameterType() { + @Test void testGetParamType() { assertEquals(parameterType, functionSqlType.getParameterType()); }
