Package org.apache.calcite.adapter.druid
Interface DruidSqlOperatorConverter
- All Known Implementing Classes:
BinaryOperatorConversion,CeilOperatorConversion,DirectOperatorConversion,DruidSqlCastConverter,ExtractOperatorConversion,FloorOperatorConversion,NaryOperatorConverter,SubstringOperatorConversion,UnaryPrefixOperatorConversion,UnarySuffixOperatorConversion
public interface DruidSqlOperatorConverter
Defines how to convert a
RexNode with a given Calcite SQL operator to
a Druid expression.-
Method Summary
Modifier and TypeMethodDescriptionReturns the calcite SQL operator corresponding to Druid operator.@Nullable StringtoDruidExpression(RexNode rexNode, RelDataType rowType, DruidQuery druidQuery) Translate rexNode to valid Druid expression.
-
Method Details
-
calciteOperator
SqlOperator calciteOperator()Returns the calcite SQL operator corresponding to Druid operator.- Returns:
- operator
-
toDruidExpression
Translate rexNode to valid Druid expression.- Parameters:
rexNode- rexNode to translate to Druid expressionrowType- row type associated with rexNodedruidQuery- druid query used to figure out configs/fields related like timeZone- Returns:
- valid Druid expression or null if it can not convert the rexNode
-