andygrove commented on code in PR #672: URL: https://github.com/apache/datafusion-comet/pull/672#discussion_r1680431753
########## native/core/src/execution/datafusion/planner.rs: ########## @@ -541,6 +542,24 @@ impl PhysicalPlanner { Some(self.create_expr(case_when.else_expr.as_ref().unwrap(), input_schema)?) } }; + + // optimized path for CASE WHEN predicate THEN expr ELSE null END + if else_phy_expr.is_none() && when_then_pairs.len() == 1 { Review Comment: I filed https://github.com/apache/datafusion/issues/11484 to track up streaming this -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org