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/03/17 12:42:38 UTC

[GitHub] [arrow-rs] alamb commented on a change in pull request #1457: Fix generate_map_case

alamb commented on a change in pull request #1457:
URL: https://github.com/apache/arrow-rs/pull/1457#discussion_r829073918



##########
File path: integration-testing/src/lib.rs
##########
@@ -569,6 +569,31 @@ fn array_from_json(
             }
             Ok(Arc::new(b.finish()))
         }
+        DataType::Map(child_field, _) => {
+            let null_buf = create_null_buf(&json_col);
+            let children = json_col.children.clone().unwrap();
+            let child_array = array_from_json(
+                child_field,
+                children.get(0).unwrap().clone(),

Review comment:
       how do we know there is exactly one child in this case?




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