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

Function coord_compatible

nodedb-sql/src/planner/array_dml.rs:127–136  ·  view source on GitHub ↗
(c: &ArrayCoordLiteral, dtype: ArrayDimType)

Source from the content-addressed store, hash-verified

125}
126
127fn coord_compatible(c: &ArrayCoordLiteral, dtype: ArrayDimType) -> bool {
128 matches!(
129 (c, dtype),
130 (ArrayCoordLiteral::Int64(_), ArrayDimType::Int64)
131 | (ArrayCoordLiteral::Int64(_), ArrayDimType::TimestampMs)
132 | (ArrayCoordLiteral::Int64(_), ArrayDimType::Float64)
133 | (ArrayCoordLiteral::Float64(_), ArrayDimType::Float64)
134 | (ArrayCoordLiteral::String(_), ArrayDimType::String)
135 )
136}
137
138fn attr_compatible(a: &ArrayAttrLiteral, dtype: ArrayAttrType) -> bool {
139 matches!(

Callers 1

validate_coordsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected