Package org.apache.calcite.adapter.druid
Class CeilOperatorConversion
java.lang.Object
org.apache.calcite.adapter.druid.CeilOperatorConversion
- All Implemented Interfaces:
DruidSqlOperatorConverter
DruidSqlOperatorConverter implementation that handles Ceil operations
conversions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the calcite SQL operator corresponding to Druid operator.@Nullable StringtoDruidExpression(RexNode rexNode, RelDataType rowType, DruidQuery query) Translate rexNode to valid Druid expression.
-
Constructor Details
-
CeilOperatorConversion
public CeilOperatorConversion()
-
-
Method Details
-
calciteOperator
Description copied from interface:DruidSqlOperatorConverterReturns the calcite SQL operator corresponding to Druid operator.- Specified by:
calciteOperatorin interfaceDruidSqlOperatorConverter- Returns:
- operator
-
toDruidExpression
Description copied from interface:DruidSqlOperatorConverterTranslate rexNode to valid Druid expression.- Specified by:
toDruidExpressionin interfaceDruidSqlOperatorConverter- Parameters:
rexNode- rexNode to translate to Druid expressionrowType- row type associated with rexNodequery- druid query used to figure out configs/fields related like timeZone- Returns:
- valid Druid expression or null if it can not convert the rexNode
-