Class SqlDatetimeSubtractionOperator

  • public class SqlDatetimeSubtractionOperator
    extends SqlSpecialOperator
    A special operator for the subtraction of two DATETIMEs. The format of DATETIME subtraction is:
    "(" <datetime> "-" <datetime> ")" <interval qualifier>

    This operator is special since it needs to hold the additional interval qualifier specification, when in SqlCall form. In RexNode form, it has only two parameters, and the return type describes the desired type of interval.