monkwire commented on code in PR #5448:
URL: https://github.com/apache/arrow-rs/pull/5448#discussion_r1510154828


##########
arrow-flight/examples/flight_sql_server.rs:
##########
@@ -643,7 +643,8 @@ impl FlightSqlService for FlightSqlServiceImpl {
         self.check_token(&request)?;
         let schema = Self::fake_result()
             .map_err(|e| status!("Error getting result schema", e))?
-            .schema();
+            .schema()
+            .clone();
         let message = SchemaAsIpc::new(&schema, &IpcWriteOptions::default())

Review Comment:
   Thanks, I was able to remove this `.clone()` by saving the `RecordBatch` to 
a non-temporary value.



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

Reply via email to