Fix ARRAY_CONTAINS partial matches for nested objects

This commit is contained in:
Pijus Kamandulis
2025-02-03 19:29:29 +02:00
parent 8657c48fc8
commit 3fee3bc816
2 changed files with 23 additions and 9 deletions

View File

@@ -220,7 +220,7 @@ func (r rowContext) partialMatch(item interface{}, exprToSearch interface{}) boo
}
for _, key := range exprValue.MapKeys() {
if itemValue.MapIndex(key).Interface() != exprValue.MapIndex(key).Interface() {
if !reflect.DeepEqual(itemValue.MapIndex(key).Interface(), exprValue.MapIndex(key).Interface()) {
return false
}
}