timsaucer commented on issue #12574: URL: https://github.com/apache/datafusion/issues/12574#issuecomment-2371104853
I did a quick proof of concept. Does this match what you're looking for? ``` #[tokio::main] async fn main() -> Result<()> { let batch = create_batch!( ("a", Int32, vec![1, 2, 3]), ("b", Float64, vec![Some(4.0), None, Some(5.0)]), ("c", Utf8, vec!["alpha", "beta", "gamma"]) )?; let ctx = SessionContext::new(); ctx.read_batch(batch)?.show().await } ``` Output is ``` +---+-----+-------+ | a | b | c | +---+-----+-------+ | 1 | 4.0 | alpha | | 2 | | beta | | 3 | 5.0 | gamma | +---+-----+-------+ ``` -- 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