Class ExprNode.ColRelOpConstNode

Enclosing class:
ExprNode

public static class ExprNode.ColRelOpConstNode extends ExprNode.RelOpNode
Semanticized form of a Calcite relational operator. Abstracts out the Drill implementation details to capture just the column name, operator and value. Supports only expressions of the form:
<column> <relop> <const>
Where the column is a simple name (not an array or map reference), the relop is one of a defined set, and the constant is one of the defined Drill types.

(The driver will convert expressions of the form:
<const> <relop> <column>
into the normalized form represented here.

  • Field Details

  • Constructor Details

    • ColRelOpConstNode

      public ColRelOpConstNode(String colName, RelOp op, ConstantHolder value)
    • ColRelOpConstNode

      public ColRelOpConstNode(ExprNode.ColRelOpConstNode from, ConstantHolder value)
      Rewrite the RelOp with a normalized value.
      Parameters:
      from - the original RelOp
      value - the new value with a different type and matching value
  • Method Details