Call `self.map.into_array()` validating that the strings are in the same order as they were inserted
(self)
| 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 | } |