From bce22d5585d7ab8a7b744a4c6a662d1e7c388916 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies Date: Fri, 15 Mar 2024 12:42:38 +1300 Subject: [PATCH] Deprecate array_to_json_array --- arrow-json/src/writer.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arrow-json/src/writer.rs b/arrow-json/src/writer.rs index d8045c330481..9f63b811d74e 100644 --- a/arrow-json/src/writer.rs +++ b/arrow-json/src/writer.rs @@ -161,6 +161,7 @@ fn struct_array_to_jsonmap_array( } /// Converts an arrow [`Array`] into a `Vec` of Serde JSON [`serde_json::Value`]'s +#[deprecated(note = "Use Writer")] pub fn array_to_json_array(array: &dyn Array) -> Result, ArrowError> { // For backwards compatibility, default to skip nulls array_to_json_array_internal(array, false) @@ -1837,6 +1838,7 @@ mod tests { } #[test] + #[allow(deprecated)] fn test_array_to_json_array_for_fixed_size_list_array() { let expected_json = vec![ json!([0, 1, 2]), @@ -1859,6 +1861,7 @@ mod tests { } #[test] + #[allow(deprecated)] fn test_array_to_json_array_for_map_array() { let expected_json = serde_json::from_value::>(json!([ [