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

Method into_array

datafusion/physical-expr-common/src/binary_map.rs:980–991  ·  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

978 /// Call `self.map.into_array()` validating that the strings are in the same
979 /// order as they were inserted
980 fn into_array(self) -> ArrayRef {
981 let Self {
982 map,
983 strings,
984 indexes: _,
985 } = self;
986
987 let arr = map.into_state();
988 let expected: ArrayRef = Arc::new(StringArray::from(strings));
989 assert_eq!(&arr, &expected);
990 arr
991 }
992 }
993}

Calls 2

newFunction · 0.85
into_stateMethod · 0.45