clp icon indicating copy to clipboard operation
clp copied to clipboard

Schema matching fails on negated precise array search matching wildcard

Open gibber9809 opened this issue 1 year ago • 0 comments

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

  1. Compress the example data {"a": [{"b": "c"}]}
  2. Perform the search NOT a.b: *
  3. Observe schema matching failure

gibber9809 avatar Jan 25 '24 04:01 gibber9809