blaginin commented on code in PR #15255: URL: https://github.com/apache/datafusion/pull/15255#discussion_r2000955601
########## datafusion/core/tests/user_defined/expr_planner.rs: ########## @@ -73,52 +73,62 @@ async fn plan_and_collect(sql: &str) -> Result<Vec<RecordBatch>> { ctx.sql(sql).await?.collect().await } +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: can we use `batches_to_string` for that? -- 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