Class ConstantFoldingUtil

java.lang.Object
org.apache.flink.table.planner.plan.utils.ConstantFoldingUtil

public class ConstantFoldingUtil extends Object
Utility for deciding whether than expression supports constant folding or not.
  • Constructor Details

    • ConstantFoldingUtil

      public ConstantFoldingUtil()
  • Method Details

    • supportsConstantFolding

      public static boolean supportsConstantFolding(org.apache.calcite.rex.RexNode node)
      Checks whether it contains any function calls which don't support constant folding.
      Parameters:
      node - the RexNode to check
      Returns:
      true if it contains any unsupported function calls in the specified node.