Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Gandiva supports static literal constants, but doesn't support runtime literal constants (or simply, variables). This means that queries like `x > 1` and `x > 2` are compiled in separate operators. The goal would be to provide something like prepared statement for very simple expression, e.g. ` x > ?`. This way we can pre-generate operators for most basic comparison filters on every type.
I'm thinking that the variables should be stashed in the context pointer as opposed to a new function parameter. This would minimise the implementation impact.