peter-toth commented on code in PR #10543:
URL: https://github.com/apache/datafusion/pull/10543#discussion_r1611205100


##########
datafusion/physical-expr/src/expressions/case.rs:
##########
@@ -258,6 +259,10 @@ impl CaseExpr {
     }
 }
 
+lazy_static! {

Review Comment:
   We can't create temporary `Arc::new(NoOp::new())` objects in `children()`, 
but as `NoOp` is just a placeholder, that we need in `with_new_children()`, we 
can use 1 global instance. As `Arc`s can't be const, the simplest solution 
seemed to be using `lazy_static!`, but if someone has better idea please share.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to