MCPcopy Create free account
hub / github.com/apache/datafusion / into_array

Method into_array

datafusion/physical-expr-common/src/binary_view_map.rs:789–800  ·  view source on GitHub ↗

Call `self.map.into_array()` validating that the strings are in the same order as they were inserted

(self)

Source from the content-addressed store, hash-verified

787 /// Call `self.map.into_array()` validating that the strings are in the same
788 /// order as they were inserted
789 fn into_array(self) -> ArrayRef {
790 let Self {
791 map,
792 strings,
793 indexes: _,
794 } = self;
795
796 let arr = map.into_state();
797 let expected: ArrayRef = Arc::new(StringViewArray::from(strings));
798 assert_eq!(&arr, &expected);
799 arr
800 }
801 }
802
803 #[test]

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
into_stateMethod · 0.45

Tested by

no test coverage detected