timsaucer commented on issue #16997: URL: https://github.com/apache/datafusion/issues/16997#issuecomment-3141356314
I do think this is a valid bug that schema is never set, but I hope this unblocks your immediate problem: ```diff diff --git a/rust/geodatafusion/src/udf/native/bounding_box/extent.rs b/rust/geodatafusion/src/udf/native/bounding_box/extent.rs index 8f73d927..bbdb60a1 100644 --- a/rust/geodatafusion/src/udf/native/bounding_box/extent.rs +++ b/rust/geodatafusion/src/udf/native/bounding_box/extent.rs @@ -67,11 +67,11 @@ impl AggregateUDFImpl for Extent { dbg!(&acc_args.is_distinct); dbg!(&acc_args.order_bys); // dbg!(&acc_args.exprs); - // let field = acc_args.schema.fields[0].clone(); - // HACK: unclear if there's a way to pass down the input field - let input_type = GeometryType::new(Default::default()); - let field = Arc::new(input_type.to_field("", true)); + let field = acc_args + .exprs[0] + .return_field(acc_args.schema)?; + Ok(Box::new(ExtentAccumulator::new(field))) } } ``` -- 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