SeaQL / otter-sql

🦦 An Embeddable SQL Executor in Rust
Apache License 2.0
26 stars 2 forks source link

`Expr` evaluator #18

Closed Samyak2 closed 2 years ago

Samyak2 commented 2 years ago

Motivation

We have a custom crate::expr::Expr representing any arbitrary SQL expression. Now, we need an executor for this Expr.

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