findepi commented on PR #16625: URL: https://github.com/apache/datafusion/pull/16625#issuecomment-3114360847
> What I think I am confused about is what is the practical difference between `HardRequirement` and `SoftRequiement` -- specifically, what different plan / decision will be made. > > I believe the result is that DataFusion will attempt to sort the input according to the requirement, but if it can not (because it will cause a conflict with another aggregate function's requirements, for example) then the aggregate can still be run with the different ordering - HardRequirement -- if the input sort requirement is not satisfied, then query planning errors. This is the case when aggregate functions want the input to be sorted, but lack sorting capability if it is not. - ideally this should never happen. We might want to work towards removing HardRequirement in the future. - SoftRequiement -- if the input is sorted, great, if it's not, also fine -- 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