diff --git a/arrow-array/src/builder/map_builder.rs b/arrow-array/src/builder/map_builder.rs index 4109b0f45d30..edc45c2c23b7 100644 --- a/arrow-array/src/builder/map_builder.rs +++ b/arrow-array/src/builder/map_builder.rs @@ -120,7 +120,7 @@ impl MapBuilder { } /// Returns both the key and value array builders of the map - pub fn keys_and_values(&mut self) -> (&mut K, &mut V) { + pub fn entries(&mut self) -> (&mut K, &mut V) { (&mut self.key_builder, &mut self.value_builder) } diff --git a/arrow/tests/array_transform.rs b/arrow/tests/array_transform.rs index 4a37c5d74cee..5a267c876d6a 100644 --- a/arrow/tests/array_transform.rs +++ b/arrow/tests/array_transform.rs @@ -837,12 +837,12 @@ fn test_map_keys_values_append() { Int64Builder::with_capacity(32), Int64Builder::with_capacity(32), ); - let (keys, values) = builder.keys_and_values(); + let (keys, values) = builder.entries(); keys.append_slice(&[1, 2, 3]); values.append_slice(&[1, 3, 4]); builder.append(true).unwrap(); - let (keys, values) = builder.keys_and_values(); + let (keys, values) = builder.entries(); keys.append_slice(&[4, 5]); values.append_slice(&[4, 6]); builder.append(true).unwrap();