Re: [I] Reduce repetition in datafusion::functions using macros [datafusion]

2024-06-03 Thread via GitHub
alamb closed issue #10397: Reduce repetition in datafusion::functions using macros URL: https://github.com/apache/datafusion/issues/10397 -- 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

Re: [I] Reduce repetition in datafusion::functions using macros [datafusion]

2024-05-06 Thread via GitHub
alamb commented on issue #10397: URL: https://github.com/apache/datafusion/issues/10397#issuecomment-2096780294 Specifically, I think @jayzhan211 found a nice solution on the rust forums: > https://users.rust-lang.org/t/macro-repetition-with-multiple-rules/110816/2?u=jayzhan >

[I] Reduce repetition in datafusion::functions using macros [datafusion]

2024-05-06 Thread via GitHub
alamb opened a new issue, #10397: URL: https://github.com/apache/datafusion/issues/10397 I think it is possible to take `Vec` like what functions-array macro does ```rust ($UDF:ty, $EXPR_FN:ident, $DOC:expr , $SCALAR_UDF_FN:ident) => { paste::paste! {