espertechinc / esper

Esper Complex Event Processing, Streaming SQL and Event Series Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No output from statement with 17+ regexp/like clauses

frbor opened this issue · comments

I'm having problems with a statement with more than 16 REGEXP clauses. To replicate the issue I've created an esper notebook with these cells:

%esperepl

CREATE SCHEMA Event(timestamp long, domain string);

SELECT event 

FROM Event(
           domain REGEXP ".*test.*" // 1
        OR domain REGEXP ".*test.*" // 2
        OR domain REGEXP ".*test.*" // 3
        OR domain REGEXP ".*test.*" // 4
        OR domain REGEXP ".*test.*" // 5
        OR domain REGEXP ".*test.*" // 6
        OR domain REGEXP ".*test.*" // 7
        OR domain REGEXP ".*test.*" // 8
        OR domain REGEXP ".*test.*" // 9
        OR domain REGEXP ".*test.*" // 10
        OR domain REGEXP ".*test.*" // 11
        OR domain REGEXP ".*test.*" // 12
        OR domain REGEXP ".*test.*" // 13
        OR domain REGEXP ".*test.*" // 14
        OR domain REGEXP ".*test.*" // 15
        OR domain REGEXP ".*test.*" // 16
        OR domain REGEXP ".*test.*" // 17
) event
%esperscenario

Event = {domain='abc\\ntest.com'};

Running the above produce no compilation error but it does not match and does not raise an error. However, if we remove the last statement and only have 16 clauses, it matches.

The same issue applies using more that 16 LIKE clauses.

Is this a known limitation with the number of regex/like clauses in the same statement code?

For reference we have tested locally that settings FilterIndexPlanning.BASIC mitigates the issue.

We have also tested different esper versions and the above example works as expected on Esper 8.4.0, but not on 8.5.0 and 8.9.0.