OmniSciDB  3a86f6ec37
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 1914 of file MapDSqlOperatorTable.java.

Constructor & Destructor Documentation

◆ ApproxCountDistinct()

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

Definition at line 1915 of file MapDSqlOperatorTable.java.

1915  {
1916  super("APPROX_COUNT_DISTINCT",
1917  null,
1918  SqlKind.OTHER_FUNCTION,
1919  null,
1920  null,
1921  OperandTypes.or(OperandTypes.family(SqlTypeFamily.ANY),
1922  OperandTypes.family(SqlTypeFamily.ANY, SqlTypeFamily.INTEGER)),
1923  SqlFunctionCategory.SYSTEM,
1924  false,
1925  false,
1926  Optionality.FORBIDDEN);
1927  }

Member Function Documentation

◆ inferReturnType()

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

Definition at line 1930 of file MapDSqlOperatorTable.java.

1930  {
1931  final RelDataTypeFactory typeFactory = opBinding.getTypeFactory();
1932  return typeFactory.createSqlType(SqlTypeName.BIGINT);
1933  }

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