This is an automated email from the ASF dual-hosted git repository.
gabotechs pushed a commit to branch fix-constant-datatype-parquet
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/fix-constant-datatype-parquet
by this push:
new 779e588471 Assert actual values in tests
779e588471 is described below
commit 779e58847170b090cf2d795a11aefaf69a23721c
Author: Gabriel Musat Mestre <[email protected]>
AuthorDate: Wed Jan 28 11:42:19 2026 +0100
Assert actual values in tests
---
datafusion/core/src/datasource/physical_plan/parquet.rs | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/datafusion/core/src/datasource/physical_plan/parquet.rs
b/datafusion/core/src/datasource/physical_plan/parquet.rs
index 508a09d428..4c6d915d5b 100644
--- a/datafusion/core/src/datasource/physical_plan/parquet.rs
+++ b/datafusion/core/src/datasource/physical_plan/parquet.rs
@@ -2293,7 +2293,15 @@ mod tests {
ctx.register_parquet("t", &path, ParquetReadOptions::default())
.await?;
let result = ctx.sql("SELECT status FROM t").await?.collect().await?;
- assert_eq!(result[0].num_rows(), 2);
+
+ insta::assert_snapshot!(batches_to_string(&result),@r"
+ +--------+
+ | status |
+ +--------+
+ | active |
+ | active |
+ +--------+
+ ");
Ok(())
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]