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 2022/05/18 15:29:48 UTC

[GitHub] [arrow-datafusion] tustvold commented on a diff in pull request #2571: Fix avro tests (#2570)

tustvold commented on code in PR #2571:
URL: https://github.com/apache/arrow-datafusion/pull/2571#discussion_r876044559


##########
datafusion/core/src/avro_to_arrow/arrow_array_reader.rs:
##########
@@ -861,6 +861,7 @@ fn flatten_string_values(values: &[&Value]) -> Vec<Option<String>> {
     values
         .iter()
         .flat_map(|row| {
+            let row = maybe_resolve_union(row);

Review Comment:
   We must do this here, to match the logic used to deduce the offsets. Without this the offsets would not match the flattened values.



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