jayzhan211 commented on issue #13742: URL: https://github.com/apache/datafusion/issues/13742#issuecomment-2541269280
I like the idea that we leverage existing filter in AggregateExec for this usecase https://github.com/apache/datafusion/blob/c030bfe1e197fdbb385511a2e4fedf753f284d6f/datafusion/physical-plan/src/aggregates/mod.rs#L355-L356 I guess you can create `AggregateExec` with predicate that only non-nulls goes to array-agg, similar to the following syntax ``` select array_agg(column1) from table where column1 != NUll; ``` -- 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