You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tustvold (via GitHub)" <gi...@apache.org> on 2023/06/04 15:19:36 UTC

[GitHub] [arrow-rs] tustvold commented on a diff in pull request #4361: Add support for FixedSizeList in array_to_json_array

tustvold commented on code in PR #4361:
URL: https://github.com/apache/arrow-rs/pull/4361#discussion_r1216802219


##########
arrow-json/src/writer.rs:
##########
@@ -190,6 +190,15 @@ pub fn array_to_json_array(array: &ArrayRef) -> Result<Vec<Value>, ArrowError> {
                 None => Ok(Value::Null),
             })
             .collect(),
+        DataType::FixedSizeList(_, _) => {
+            ListArray::from(as_fixed_size_list_array(array).to_owned())

Review Comment:
   You should be able to use ArrayIter directly without needing to convert to a ListArray. Could probably add iter() to FixedSizeListArray also to make this more discoverable...



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