Is your feature request related to a problem or challenge?
Dynamic filters are "inlined" when serialized and deserialized (ex. maybe converted to a LiteralExpr or something).
Describe the solution you'd like
Ideally, we want the DynamicFilterPhysicalExpr type to be re-created after deserialization. We don't want it to be inlined as the contained expression.
We also want the correct deduping logic to apply (ie. if there's two dynamic filters in the same plan which are different but have the same inner state, they should share the same Arc<Inner>)
Describe alternatives you've considered
No response
Additional context
datafusion-contrib/datafusion-distributed#180
Is your feature request related to a problem or challenge?
Dynamic filters are "inlined" when serialized and deserialized (ex. maybe converted to a
LiteralExpror something).Describe the solution you'd like
Ideally, we want the
DynamicFilterPhysicalExprtype to be re-created after deserialization. We don't want it to be inlined as the contained expression.We also want the correct deduping logic to apply (ie. if there's two dynamic filters in the same plan which are different but have the same inner state, they should share the same
Arc<Inner>)Describe alternatives you've considered
No response
Additional context
datafusion-contrib/datafusion-distributed#180