Class UnwrapYearInComparison

java.lang.Object
io.trino.sql.planner.iterative.rule.ExpressionRewriteRuleSet
io.trino.sql.planner.iterative.rule.UnwrapYearInComparison

public class UnwrapYearInComparison extends ExpressionRewriteRuleSet
Transforms a constant date/time expression t
     year(date_time) = t
 

into

     date_time BETWEEN (beginning of the year t) AND (end of the year t)
 

See Also:
  • Constructor Details

  • Method Details

    • calculateRangeEndInclusive

      public static Object calculateRangeEndInclusive(int year, Type type)