(batch: &'a RecordBatch, column: &str)
| 1691 | } |
| 1692 | |
| 1693 | fn string_array<'a>(batch: &'a RecordBatch, column: &str) -> Result<&'a StringArray> { |
| 1694 | let array = batch |
| 1695 | .column_by_name(column) |
| 1696 | .with_context(|| format!("column not found: {column}"))?; |
| 1697 | array |
| 1698 | .as_any() |
| 1699 | .downcast_ref::<StringArray>() |
| 1700 | .with_context(|| format!("column {column} is not StringArray")) |
| 1701 | } |
| 1702 | |
| 1703 | fn int32_array<'a>(batch: &'a RecordBatch, column: &str) -> Result<&'a Int32Array> { |
| 1704 | let array = batch |
no test coverage detected