MCPcopy Create free account
hub / github.com/ciphermodelabs/ciphercore / get_number_of_rows

Function get_number_of_rows

ciphercore-base/src/evaluators/join.rs:435–442  ·  view source on GitHub ↗
(set_t: &Type)

Source from the content-addressed store, hash-verified

433}
434
435fn get_number_of_rows(set_t: &Type) -> Result<u64> {
436 let headers_types = get_named_types(set_t)?;
437 if headers_types.is_empty() {
438 return Err(runtime_error!("The set is empty"));
439 }
440 let first_column_t = ColumnType::new((*headers_types[0].1).clone(), true, &headers_types[0].0)?;
441 Ok(first_column_t.get_num_entries())
442}
443
444fn evaluate_full_join(
445 set0: TypedValue,

Callers 1

evaluate_full_joinFunction · 0.85

Calls 4

get_named_typesFunction · 0.85
is_emptyMethod · 0.80
cloneMethod · 0.80
get_num_entriesMethod · 0.45

Tested by

no test coverage detected