alamb commented on issue #13891: URL: https://github.com/apache/datafusion/issues/13891#issuecomment-2565322252
Copying from https://github.com/apache/datafusion/pull/13933#issuecomment-2565321646: So this would look something like: 1. `COPY (SELECT ... ORDER BY x, y) to 'foo.parquet'` 2. `foo.parquet` has some new metadata like `DATAFUSION_ORDER_BY = `x ASC, y ASC` 3. On the next `SELECT ... FROM 'foo.parquet'` the ParquetExec would look for the ` DATAFUSION_ORDER_BY` metadata in the file and if present update the [EquivalenceProperties](https://docs.rs/datafusion/latest/datafusion/physical_expr/struct.EquivalenceProperties.html) to reflect an ordering `x, -- 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