adriangb commented on issue #15425: URL: https://github.com/apache/datafusion/issues/15425#issuecomment-2752634913
Well if you did set `datafusion.execution.collect_statistics` I _think_ those stats would be used to calculate `max` _but_ I think you're right that even if you didn't collect statistics upfront if that expression could be pushed down into each individual file scan then it could be optimized. Maybe related to https://github.com/apache/datafusion/issues/14993? -- 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