Uses of Interface
io.trino.sql.ir.optimizer.IrOptimizerRule
Packages that use IrOptimizerRule
-
Uses of IrOptimizerRule in io.trino.sql.ir.optimizer.rule
Classes in io.trino.sql.ir.optimizer.rule that implement IrOptimizerRuleModifier and TypeClassDescriptionclassclassTransforms:classTransforms:classEvaluates a constant Array expressionclassEvaluates a constant Bind expressionclassEvaluates a constant Call expressionclassEvaluates a constant Call expression where at least one of the arguments is nullclassEvaluates a constant Case expression:Case(When(TRUE, r), When(...), When(...)->rclassEvaluates a constant Cast expressionclassEvaluates a constant Comparison expressionclassResolves field reference from an explicit row.classEvaluates a constant IN expressionclassPartial evaluation of IsNull.classEvaluates a constant logical expression.classEvaluates a constant NullIf expressionclassclassEvaluates a constant Row expressionclassEvaluates a constant Switch expressionclassFlatten nested coalesce expressions.classFlatten nested logical terms.classRemove duplicated and redundant clauses in Case.classRemove duplicate deterministic arguments and any argument after the first non-null constant.classclassRemove duplicated and redundant terms in logical expressions.classRemove duplicated and redundant clauses in Switch.classSimplifies logical expression containing terms and negations of those terms.classSimplify IN expression with continuous range of constant test values into a BETWEEN expression.classSimplify CASE expressions with constant TRUE/FALSE results:Case([When(a, true), When(b, false), When(c, true)], false) -> $identical(Or(a, c), true)Case([When(a, true), When(b, false), When(c, false)], true) -> $not($identical(Or(b, c), true)classRemove casts where the target type matches the type of the input expression.classSimplify stacked arithmetic negations expressions.classSimplify stacked Not expressions.classclassOptimize case of transformation with cast and json_extract_scalars E.g,transform(cast(json_parse(varchar_column) as array<json>), json -> json_extract_scalar(json, jsonPath)) -> $internal$json_string_array_extract_scalar(varchar_column, jsonPath)