Schema matching fails on negated precise array search matching wildcard
gibber9809 opened this issue · comments
Devin Gibson commented
Bug
On a log file consisting of the following example data
{"a": [{"b": "c"}]}
Search will work correctly for queries like a.b: c
and a.b: *
, but will fail on schema matching for the query NOT a.b: *
.
The expected behaviour is for schema matching to succeed on the array column "a" following by the record not being matched because an object with the key "b" exists within the array "a". This is likely caused by an interaction between the Convert To Exists pass and Schema Matching.
CLP version
Environment
Ubuntu focal clp image.
Reproduction steps
- Compress the example data
{"a": [{"b": "c"}]}
- Perform the search
NOT a.b: *
- Observe schema matching failure