alamb commented on code in PR #15255:
URL: https://github.com/apache/datafusion/pull/15255#discussion_r2001657619


##########
datafusion/core/tests/user_defined/user_defined_table_functions.rs:
##########
@@ -34,11 +34,19 @@ use datafusion::physical_plan::{collect, ExecutionPlan};
 use datafusion::prelude::SessionContext;
 use datafusion_catalog::Session;
 use datafusion_catalog::TableFunctionImpl;
-use datafusion_common::{assert_batches_eq, DFSchema, ScalarValue};
+use datafusion_common::{DFSchema, ScalarValue};
 use datafusion_expr::{EmptyRelation, Expr, LogicalPlan, Projection, TableType};
 
 use async_trait::async_trait;
 
+fn fmt_batches(batches: &[RecordBatch]) -> String {
+    use arrow::util::pretty::pretty_format_batches;
+    match pretty_format_batches(batches) {
+        Ok(formatted) => formatted.to_string(),
+        Err(e) => format!("Error formatting record batches: {}", e),
+    }
+}
+

Review Comment:
   This is a good call -- I took the liberty of pushing a commit to make the 
change.



-- 
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]

Reply via email to