OmniSciDB  c07336695a
com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction:

Public Member Functions

 MyUDFFunction ()
 
RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Detailed Description

"MyUDFFunction" user-defined function test. our udf's will look like system functions to calcite as it has no access to the code

Definition at line 285 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ MyUDFFunction()

com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction.MyUDFFunction ( )
inline

Definition at line 286 of file MapDSqlOperatorTable.java.

286  {
287  super("MyUDF",
288  SqlKind.OTHER_FUNCTION,
289  null,
290  null,
291  OperandTypes.STRING_STRING,
292  SqlFunctionCategory.SYSTEM);
293  }

Member Function Documentation

◆ inferReturnType()

RelDataType com.mapd.calcite.parser.MapDSqlOperatorTable.MyUDFFunction.inferReturnType ( SqlOperatorBinding  opBinding)
inline

Definition at line 296 of file MapDSqlOperatorTable.java.

296  {
297  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
298  return typeFactory.createSqlType(SqlTypeName.BIGINT);
299  }

The documentation for this class was generated from the following file: