Package io.trino.sql.ir.optimizer.rule
Class SpecializeTransformWithJsonParse
java.lang.Object
io.trino.sql.ir.optimizer.rule.SpecializeTransformWithJsonParse
- All Implemented Interfaces:
IrOptimizerRule
Optimize 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)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(Expression expression, Session session, Map<Symbol, Expression> bindings)
-
Constructor Details
-
SpecializeTransformWithJsonParse
-
-
Method Details
-
apply
public Optional<Expression> apply(Expression expression, Session session, Map<Symbol, Expression> bindings) - Specified by:
applyin interfaceIrOptimizerRule
-