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

Function string_array

crates/store/src/comments_store.rs:1693–1701  ·  view source on GitHub ↗
(batch: &'a RecordBatch, column: &str)

Source from the content-addressed store, hash-verified

1691}
1692
1693fn 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
1703fn int32_array<'a>(batch: &'a RecordBatch, column: &str) -> Result<&'a Int32Array> {
1704 let array = batch

Callers 5

query_comment_tasksFunction · 0.70
query_published_commentsFunction · 0.70
query_comment_audit_logsFunction · 0.70
query_comment_ai_runsFunction · 0.70
query_comment_ai_chunksFunction · 0.70

Calls 1

with_contextMethod · 0.45

Tested by

no test coverage detected