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

Function coalesce

nodedb-query/src/expr_parse/parser.rs:536–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

534
535 #[test]
536 fn coalesce() {
537 let (expr, _) = parse_ok("COALESCE(description, '')");
538 let doc = Value::from(serde_json::json!({"description": null}));
539 assert_eq!(expr.eval(&doc), Value::String("".into()));
540 }
541
542 #[test]
543 fn case_when() {

Callers

nothing calls this directly

Calls 1

parse_okFunction · 0.70

Tested by

no test coverage detected