OmniSciDB  3a86f6ec37
com.mapd.calcite.parser.MapDSqlOperatorTable.ST_X Class Reference
+ Inheritance diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_X:
+ Collaboration diagram for com.mapd.calcite.parser.MapDSqlOperatorTable.ST_X:

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ST_X ()
 

Detailed Description

Definition at line 1410 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ST_X()

com.mapd.calcite.parser.MapDSqlOperatorTable.ST_X.ST_X ( )
inlinepackage

Definition at line 1411 of file MapDSqlOperatorTable.java.

1411  {
1412  super("ST_X",
1413  SqlKind.OTHER_FUNCTION,
1414  null,
1415  null,
1416  OperandTypes.family(SqlTypeFamily.ANY),
1417  SqlFunctionCategory.SYSTEM);
1418  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1421 of file MapDSqlOperatorTable.java.

1421  {
1422  assert opBinding.getOperandCount() == 1;
1423  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1424  return typeFactory.createTypeWithNullability(
1425  typeFactory.createSqlType(SqlTypeName.DOUBLE),
1426  opBinding.getOperandType(0).isNullable());
1427  }

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