(batch: &'a RecordBatch, name: &str)
| 3121 | } |
| 3122 | |
| 3123 | fn column<'a>(batch: &'a RecordBatch, name: &str) -> Result<&'a ArrayRef> { |
| 3124 | let idx = batch |
| 3125 | .schema() |
| 3126 | .index_of(name) |
| 3127 | .with_context(|| format!("missing column {name}"))?; |
| 3128 | Ok(batch.column(idx)) |
| 3129 | } |
| 3130 | |
| 3131 | fn value_string(array: &StringArray, row: usize) -> String { |
| 3132 | array.value(row).to_string() |
no test coverage detected