()
| 310 | |
| 311 | #[test] |
| 312 | fn test_dictionary() { |
| 313 | // (a, b, c), (0, 1, 0, 2) => (a, b, a, c) |
| 314 | let array = create_dictionary_array(&["a", "b", "c"], &[Some("a"), Some("b"), None, Some("c")]); |
| 315 | let arrays = vec![&array]; |
| 316 | |
| 317 | let mut mutable = MutableArrayData::new(arrays, false, 0); |
| 318 | |
| 319 | mutable.extend(0, 1, 3); |
| 320 | |
| 321 | let result = mutable.freeze(); |
| 322 | let result = DictionaryArray::from(result); |
| 323 | |
| 324 | let expected = Int16Array::from(vec![Some(1), None]); |
| 325 | assert_eq!(result.keys(), &expected); |
| 326 | } |
| 327 | |
| 328 | #[test] |
| 329 | fn test_struct() { |
nothing calls this directly
no test coverage detected