houqp commented on pull request #55: URL: https://github.com/apache/arrow-datafusion/pull/55#issuecomment-864608955
after digging more into this, the bug seems to be related to the projection push down optimizer, we are breaking the [Logical schema is invariant under logical optimization](https://github.com/apache/arrow-datafusion/blob/master/docs/specification/invariants.md#logical-schema-is-invariant-under-logical-optimization) invariant for both window and aggregate plans. This issue has been in our code base for awhile, but only surfaced through the newly added window order by integration test. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org