QuakeWang commented on code in PR #366:
URL: https://github.com/apache/paimon-rust/pull/366#discussion_r3418145001
##########
crates/integration_tests/tests/read_tables.rs:
##########
@@ -1675,6 +1669,109 @@ async fn
test_read_mixed_format_schema_evolution_drop_column() {
);
}
+/// Test reading a mixed-format table after ALTER COLUMN ... FIRST/AFTER.
+/// Old files keep the original physical column order; new files use moved
columns.
+#[tokio::test]
+async fn test_read_mixed_format_schema_evolution_reorder_move_column() {
+ let (plan, batches) =
+
scan_and_read_with_fs_catalog("mixed_format_schema_evolution_reorder_move_column",
None)
+ .await;
+
+ assert_plan_file_formats(
+ &plan,
+ &["avro", "orc", "parquet"],
+ "mixed_format_schema_evolution_reorder_move_column",
+ );
Review Comment:
Non-blocking: can we also assert multiple schema ids here, like the adjacent
mixed-format schema evolution tests? This would make the test prove it is
exercising the historical-schema path, not only mixed file formats.
--
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]