Dandandan commented on code in PR #17643: URL: https://github.com/apache/datafusion/pull/17643#discussion_r2362268456
########## datafusion-examples/examples/flight/flight_server.rs: ########## @@ -98,7 +99,7 @@ impl FlightService for FlightServiceImpl { let df = ctx.sql(sql).await.map_err(to_tonic_err)?; // execute the query - let schema = df.schema().clone().into(); + let schema: SchemaRef = df.schema().into(); Review Comment: You still have to "annotate" it in your types as `SchemaRef`? So I guess it's as good to be explicit about it with `Arc::new`. -- 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