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 6c5237d001de51c66d6c7652f4a4ff412e6199ee Author: Michal Stutzmann <[email protected]> AuthorDate: Tue Aug 26 08:47:08 2025 +0200 Add JavaDoc --- .../org/apache/calcite/sql/type/FunctionSqlType.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/core/src/main/java/org/apache/calcite/sql/type/FunctionSqlType.java b/core/src/main/java/org/apache/calcite/sql/type/FunctionSqlType.java index 24491a8e21..84dead65a2 100644 --- a/core/src/main/java/org/apache/calcite/sql/type/FunctionSqlType.java +++ b/core/src/main/java/org/apache/calcite/sql/type/FunctionSqlType.java @@ -32,6 +32,12 @@ public class FunctionSqlType extends AbstractSqlType { private final RelDataType parameterType; private final RelDataType returnType; + /** + * Constructs a new function SQL type. This should only be called from a factory method. + * + * @param parameterType a struct type wrapping function's input parameter types. + * @param returnType function's return type. + */ public FunctionSqlType( RelDataType parameterType, RelDataType returnType) { super(SqlTypeName.FUNCTION, true, null); @@ -62,10 +68,20 @@ public FunctionSqlType( return this; } + /** + * Returns the parameter type of the function. + * + * @return a struct wrapping function's parameter types. + */ public RelDataType getParameterType() { return parameterType; } + /** + * Returns the return type of the function. + * + * @return the function's return type. + */ public RelDataType getReturnType() { return returnType; }
