MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / sql_set_equal

Method sql_set_equal

graphlite/src/exec/result.rs:311–327  ·  view source on GitHub ↗

SQL set operation equality: NULL != NULL

(&self, other_values: &[Value])

Source from the content-addressed store, hash-verified

309impl Row {
310 /// SQL set operation equality: NULL != NULL
311 fn sql_set_equal(&self, other_values: &[Value]) -> bool {
312 if self.positional_values.len() != other_values.len() {
313 return false;
314 }
315
316 for (self_val, other_val) in self.positional_values.iter().zip(other_values.iter()) {
317 // In SQL set operations, NULL != NULL
318 if matches!(self_val, Value::Null) || matches!(other_val, Value::Null) {
319 return false;
320 }
321 if self_val != other_val {
322 return false;
323 }
324 }
325
326 true
327 }
328
329 /// SQL set operation equality for named values
330 fn sql_set_equal_named(&self, other: &Self) -> bool {

Callers 1

eqMethod · 0.80

Calls 2

lenMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected