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

Function is_null_literal

nodedb-sql/src/planner/array_fn/helpers.rs:116–121  ·  view source on GitHub ↗
(expr: &ast::Expr)

Source from the content-addressed store, hash-verified

114}
115
116pub(super) fn is_null_literal(expr: &ast::Expr) -> bool {
117 matches!(
118 expr,
119 ast::Expr::Value(v) if matches!(v.value, ast::Value::Null)
120 )
121}
122
123pub(super) fn value_to_coord_literal(v: &Value, dim: &str) -> Result<ArrayCoordLiteral> {
124 match v {

Callers 1

plan_aggFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected