MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / spec

Function spec

nodedb-query/src/window/value_eval.rs:474–488  ·  view source on GitHub ↗
(
        func: &str,
        args: Vec<SqlExpr>,
        partition_by: Vec<SqlExpr>,
        order_by: Vec<(SqlExpr, bool)>,
    )

Source from the content-addressed store, hash-verified

472 }
473
474 fn spec(
475 func: &str,
476 args: Vec<SqlExpr>,
477 partition_by: Vec<SqlExpr>,
478 order_by: Vec<(SqlExpr, bool)>,
479 ) -> WindowFuncSpec {
480 WindowFuncSpec {
481 alias: format!("w_{func}"),
482 func_name: func.to_string(),
483 args,
484 partition_by,
485 order_by,
486 frame: WindowFrame::default(),
487 }
488 }
489
490 fn col(name: &str) -> SqlExpr {
491 SqlExpr::Column(name.to_string())

Callers 10

row_number_sequentialFunction · 0.85
rank_handles_tiesFunction · 0.85
dense_rank_handles_tiesFunction · 0.85
ntile_bucketsFunction · 0.85
lag_default_and_offsetFunction · 0.85
lead_boundaryFunction · 0.85
unknown_function_errorsFunction · 0.85

Calls 1

to_stringMethod · 0.80

Tested by 10

row_number_sequentialFunction · 0.68
rank_handles_tiesFunction · 0.68
dense_rank_handles_tiesFunction · 0.68
ntile_bucketsFunction · 0.68
lag_default_and_offsetFunction · 0.68
lead_boundaryFunction · 0.68
unknown_function_errorsFunction · 0.68