kosiew commented on issue #16478: URL: https://github.com/apache/datafusion/issues/16478#issuecomment-2999357989
hi @hknlof I could not reproduce this with main commit ` fb01049d7` all.json ``` {"TaskId":1,"Title":"Design homepage","AssignedTo":"Alice"} {"TaskId":2,"Title":"Implement login","AssignedTo":"Bob"} {"TaskId":3,"Title":"Set up database","AssignedTo":"Carol"} {"TaskId":4,"Title":"Write API docs","AssignedTo":"Dave"} {"TaskId":5,"Title":"Create unit tests","AssignedTo":"Eve"} {"TaskId":6,"Title":"Optimize performance","AssignedTo":"Frank"} {"TaskId":7,"Title":"Fix bugs","AssignedTo":"Grace"} {"TaskId":8,"Title":"Update dependencies","AssignedTo":"Heidi"} {"TaskId":9,"Title":"Deploy to staging","AssignedTo":"Ivan"} {"TaskId":10,"Title":"Conduct code review","AssignedTo":"Judy"} ``` ```rust use datafusion::error::Result; use datafusion::prelude::*; #[tokio::main] async fn main() -> Result<()> { let ctx = SessionContext::new(); let df = ctx .read_json( "/Users/kosiew/GitHub/datafusion/datafusion-examples/examples/all.json", NdJsonReadOptions::default(), ) .await?; for field in df.schema().fields().iter() { println!("{:?}", field.name()); } df.describe().await?; Ok(()) } ``` ``` ❯ c run --example read_json Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.48s Running `/Users/kosiew/.cargo/target/debug/examples/read_json` "AssignedTo" "TaskId" "Title" ``` -- 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