(&mut self)
| 69 | } |
| 70 | |
| 71 | fn consume_batch(&mut self) -> Result<ArrayRef> { |
| 72 | let array = self.inner.consume_batch()?; |
| 73 | if array.is_empty() { |
| 74 | return Ok(new_empty_array(&self.data_type)); |
| 75 | } |
| 76 | |
| 77 | // Convert ListArray to ListViewArray |
| 78 | let list_array = array.as_list::<OffsetSize>(); |
| 79 | |
| 80 | let list_view_array = |
| 81 | Arc::new(GenericListViewArray::<OffsetSize>::from(list_array.clone())); |
| 82 | |
| 83 | // Ensure the data type is correct |
| 84 | assert_eq!( |
| 85 | list_view_array.data_type(), |
| 86 | &self.data_type, |
| 87 | "Converted array type does not match expected type" |
| 88 | ); |
| 89 | |
| 90 | Ok(list_view_array) |
| 91 | } |
| 92 | |
| 93 | fn skip_records(&mut self, num_records: usize) -> Result<usize> { |
| 94 | self.inner.skip_records(num_records) |
nothing calls this directly
no test coverage detected