You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/10/31 09:44:59 UTC

[GitHub] [arrow-datafusion] Igosuki commented on a change in pull request #1206: Improve avro reader performance by avoiding some cloning on avro_rs::Value

Igosuki commented on a change in pull request #1206:
URL: https://github.com/apache/arrow-datafusion/pull/1206#discussion_r739784948



##########
File path: datafusion/src/avro_to_arrow/arrow_array_reader.rs
##########
@@ -112,6 +112,7 @@ impl<'a, R: Read> AvroArrowArrayReader<'a, R> {
             // reached end of file
             return Ok(None);
         }
+        let rows = rows.iter().collect::<Vec<&Vec<(String, Value)>>>();

Review comment:
       Unfortunately, in both cases we have to take ownership of the values from the iterator first. 
   I couldn't find a way to do otherwise... 




-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org