corasaurus-hex commented on code in PR #18457:
URL: https://github.com/apache/datafusion/pull/18457#discussion_r2501480227


##########
datafusion/datasource-arrow/src/file_format.rs:
##########
@@ -344,40 +382,68 @@ impl DataSink for ArrowFileSink {
     }
 }
 
+// Custom implementation of inferring schema. Should eventually be moved 
upstream to arrow-rs.
+// See <https://github.com/apache/arrow-rs/issues/5021>

Review Comment:
   Unfortunately, the fact that it's an async stream breaks a lot of the things 
we could do with upstream functions. We need to know how much to read off the 
stream to use it synchronously which means we need to do some parsing. I've 
significantly refactored it and like the result better but I'm going to stick 
with the parsing how it is, more or less.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to