andygrove commented on code in PR #1898: URL: https://github.com/apache/datafusion-comet/pull/1898#discussion_r2155022740
########## native/core/src/execution/planner.rs: ########## @@ -555,7 +555,21 @@ impl PhysicalPlanner { fail_on_error, ))) } - ExprStruct::ScalarFunc(expr) => self.create_scalar_function_expr(expr, input_schema), + ExprStruct::ScalarFunc(expr) => { + let func = self.create_scalar_function_expr(expr, input_schema); + match expr.func.as_ref() { + // DataFusion map_extract returns array of struct entries even if lookup by key + // Apache Spark waits a single value, so wrap the result into additional list extraction Review Comment: ```suggestion // Apache Spark wants a single value, so wrap the result into additional list extraction ``` -- 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