How to use Arc<dyn PhysicalExpr>
inside HashMap
as key, or inside HashSet
.
#7906
mustafasrepo
started this conversation in
General
Replies: 2 comments 1 reply
-
What is the problem with using We implemented |
Beta Was this translation helpful? Give feedback.
1 reply
-
It seems that when we use a type with unknown size inside |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think some of the mappings during projection or in other parts of the codebase, can be simplified. If we were to use
Arc<dyn PhysicalExpr>
inside aHashMap
(e.gHashMap<Arc<dyn PhysicalExpr>, Arc<dyn PhysicalExpr>>
). However, I gave it a try, and couldn't do so.Is there a way to do so? I have tried to use a wrapper struct inside
HashMap
such asHashMap<ExprWrapper, ExprWrapper>
where
ExprWrapper
isThis suggests me that, there should be a way to use directly
Arc<dyn PhysicalExpr>>
insideHashMap
. I wonder if there is anyone who has done similar to this before, and How can I do so?Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions