jkosh44 commented on issue #14451: URL: https://github.com/apache/datafusion/issues/14451#issuecomment-2640446112
@alan910127 I have a very rough proposal, that might help you with this issue. When working with `ArrayFunctionSignature` I found it very difficult to express my desired signature. Currently it looks like this: https://github.com/apache/datafusion/blob/ad60ffcfca201808215dc05ac5c8c68001ed6051/datafusion/expr-common/src/signature.rs#L228-L255 However, what if we modified it to look like this: ```Rust #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Hash)] pub struct ArrayFunctionSignature { args: Vec<ArrayFunctionArg>, } #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Hash)] pub enum ArrayFunctionArg { Element, Index, Array, RecursiveArray, MapArray, DataType{ data_type: DataType, name: &'static str }, } ``` I may try to put a PoC together today. -- 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