alamb commented on issue #8051:
URL:
https://github.com/apache/arrow-datafusion/issues/8051#issuecomment-1855953090
I think the trick here will be to ensure we can still serialize such
"precompiled" functions
What I was thinking was maybe we can make a new `PhysicalExpr` that is like
```rust
/// A function that is "precompiled" in some way
/// for example, for a regular expression that has a constant argument
/// constant can be pre-compiled into a Regexpr match instance once per query
/// rather than once per batch
///
/// Somtimes precompiling make it hard/impossible to serialize the function
again (e.g. the prepared regular expressions)
/// so this structure contains the original PhysicalExpr that can be used to
serialize the function
struct PrecompiledExpr {
precompiled: Arc<dyn PhysicalExpr>,
original: Arc<dyn PhysicalExpr>
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]