liukun4515 commented on code in PR #2586:
URL: https://github.com/apache/arrow-rs/pull/2586#discussion_r958450092


##########
arrow-flight/src/lib.rs:
##########
@@ -254,10 +254,17 @@ impl From<SchemaAsIpc<'_>> for FlightData {
     }
 }
 
-impl From<SchemaAsIpc<'_>> for SchemaResult {
-    fn from(schema_ipc: SchemaAsIpc) -> Self {
-        let IpcMessage(vals) = flight_schema_as_flatbuffer(schema_ipc.0, 
schema_ipc.1);
-        SchemaResult { schema: vals }
+impl TryFrom<SchemaAsIpc<'_>> for SchemaResult {
+    type Error = ArrowError;
+
+    fn try_from(schema_ipc: SchemaAsIpc) -> ArrowResult<Self> {

Review Comment:
   Thanks for your response for this issue @tustvold @zeroshade and explain how 
does the go/java/c++ resolve the compatibility with this.
   
   @tustvold I think we make the consistent and reach the consistent conclusion 
about how to resolve the compatibility with that.
   
   In the `Ser`, we need to check the flag `write_legacy_ipc_format` to decide 
whether to write continuation token.
   In the `Deser`, we need to try check the continuation token if it is there, 
otherwise fallback to the original way.



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