rank-p commented on code in PR #27163:
URL: https://github.com/apache/datafusion/pull/27163#discussion_r4596188451
##########
datafusion/core/tests/parquet/ordering.rs:
##########
@@ -168,3 +178,257 @@ fn find_parquet_file(
Ok(None)
}
+
+const ASC_NULLS_LAST: SortOptions = SortOptions {
+ descending: false,
+ nulls_first: false,
+};
+
+/// Each row group is sorted by `a`, but the file is not.
+#[tokio::test]
+async fn test_unordered_row_groups_are_sorted() -> Result<()> {
Review Comment:
There is another situation that this PR also fixes where each rg declares
different `sorting_columns`. In this case, we just assume that the file is not
sorted and add a `SortExec` to the plan. This is tested via unit tests in
metadata.rs
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]