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

Public Member Functions

RelDataType inferReturnType (SqlOperatorBinding opBinding)
 

Package Functions

 ApproxCountDistinct ()
 

Detailed Description

Definition at line 1334 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ApproxCountDistinct()

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

Definition at line 1335 of file MapDSqlOperatorTable.java.

1335  {
1336  super("APPROX_COUNT_DISTINCT",
1337  null,
1338  SqlKind.OTHER_FUNCTION,
1339  null,
1340  null,
1341  OperandTypes.or(OperandTypes.family(SqlTypeFamily.ANY),
1342  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER)),
1343  SqlFunctionCategory.SYSTEM);
1344  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1347 of file MapDSqlOperatorTable.java.

1347  {
1348  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1349  return typeFactory.createSqlType(SqlTypeName.BIGINT);
1350  }

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