finos / perspective

A data visualization and analytics component, especially well-suited for large and/or streaming datasets.
https://perspective.finos.org/
Apache License 2.0
7.73k stars 1.05k forks source link

ExprTK indexof function #2487

Closed yangxuesong closed 6 months ago

yangxuesong commented 6 months ago

I want to use indexof function in expression column, e.g. var v[2] := {-1,-1}; if(indexof("SomeColumn", 'SomePattern', v) OR indexof(...)) {'contains'} else {'not contains'}

BUT not work as expected, can you provide a good example of how to use indexof function and OR operator to implement string.contains function? BTW, if I set 'SomePattern' to some unicode string, there will be an error

### Tasks