Eventual-Inc / Daft

Distributed data engine for Python/SQL designed for the cloud, powered by Rust
https://getdaft.io
Apache License 2.0
2.35k stars 166 forks source link

Optimizer Const expr evaluation #3244

Open universalmind303 opened 2 weeks ago

universalmind303 commented 2 weeks ago

Is your feature request related to a problem?

constant exprs can and should be evaluated during compile (planning).

Describe the solution you'd like

ex where some_column > (1+1)

in this example, 1 + 1 is a constant expression and can optimized to where some_column > 2

Describe alternatives you've considered

No response

Additional Context

No response

Would you like to implement a fix?

Yes