Closed Samyak2 closed 2 years ago
We have a custom crate::expr::Expr representing any arbitrary SQL expression. Now, we need an executor for this Expr.
crate::expr::Expr
Expr
It will be separate from the main intermediate code executor as it operates on a single Expr and returns a single result without any side effects.
The evaluation must happen in the context of a VM and optionally a table since an expression can include references to columns.
VM
Motivation
We have a custom
crate::expr::Expr
representing any arbitrary SQL expression. Now, we need an executor for thisExpr
.Proposed Solutions
It will be separate from the main intermediate code executor as it operates on a single
Expr
and returns a single result without any side effects.The evaluation must happen in the context of a
VM
and optionally a table since an expression can include references to columns.Additional Information