Class SimplifyRedundantCast

java.lang.Object
io.trino.sql.ir.optimizer.rule.SimplifyRedundantCast
All Implemented Interfaces:
IrOptimizerRule

public class SimplifyRedundantCast extends Object implements IrOptimizerRule
Remove casts where the target type matches the type of the input expression. E.g,
  • Cast(x::bigint, bigint) -> x