clp
clp copied to clipboard
Schema matching fails on negated precise array search matching wildcard
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
284a558303d73b4a1753b3174640b61cdc04dbe6
Environment
Ubuntu focal clp image.
Reproduction steps
- Compress the example data
{"a": [{"b": "c"}]}
- Perform the search
NOT a.b: *
- Observe schema matching failure