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

Function ts_array

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

Source from the content-addressed store, hash-verified

1711}
1712
1713fn ts_array<'a>(batch: &'a RecordBatch, column: &str) -> Result<&'a TimestampMillisecondArray> {
1714 let array = batch
1715 .column_by_name(column)
1716 .with_context(|| format!("column not found: {column}"))?;
1717 array
1718 .as_any()
1719 .downcast_ref::<TimestampMillisecondArray>()
1720 .with_context(|| format!("column {column} is not TimestampMillisecondArray"))
1721}
1722
1723fn nullable_string_value(array: &StringArray, idx: usize) -> Option<String> {
1724 if array.is_null(idx) {

Callers 5

query_comment_tasksFunction · 0.85
query_published_commentsFunction · 0.85
query_comment_audit_logsFunction · 0.85
query_comment_ai_runsFunction · 0.85
query_comment_ai_chunksFunction · 0.85

Calls 1

with_contextMethod · 0.45

Tested by

no test coverage detected