Class SqlScalarExpression

java.lang.Object
dev.frostlake.executor.procedural.BaseExpression
dev.frostlake.executor.procedural.SqlScalarExpression

public class SqlScalarExpression extends BaseExpression
A procedural expression backed by the full query-side expression AST (Expression). Used for scalar constructs the lightweight procedural builder doesn't model directly — CASE, BETWEEN, IN, LIKE, CAST, IS NULL, semi-structured access, etc. ProceduralExecutor evaluates the wrapped AST through the shared ExpressionEvaluator (with the current procedural variables supplied as a resolution context), so these constructs are evaluated by the real AST instead of degrading to their source text.

This is what makes procedural expression evaluation fully AST-based: the builder covers the common operators with dedicated nodes (so e.g. function calls keep their UDF-resolving path), and everything else is wrapped here rather than falling back to a text literal.

  • Constructor Details

    • SqlScalarExpression

      public SqlScalarExpression(Expression expression)
  • Method Details

    • getExpression

      public Expression getExpression()