MCPcopy Create free account
hub / github.com/acking-you/static_flow / column

Function column

crates/store/src/lancedb_api.rs:3123–3129  ·  view source on GitHub ↗
(batch: &'a RecordBatch, name: &str)

Source from the content-addressed store, hash-verified

3121}
3122
3123fn 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
3131fn value_string(array: &StringArray, row: usize) -> String {
3132 array.value(row).to_string()

Callers 5

string_arrayFunction · 0.85
list_arrayFunction · 0.85
int32_arrayFunction · 0.85
timestamp_ms_arrayFunction · 0.85
binary_like_valueFunction · 0.85

Calls 1

with_contextMethod · 0.45

Tested by

no test coverage detected