teragrep / pth_10

Data Processing Language (DPL) translator for Apache Spark
GNU Affero General Public License v3.0
0 stars 6 forks source link

match command searches for a full string match instead of a substring match #217

Closed eemhu closed 8 months ago

eemhu commented 8 months ago

Describe the bug

| eval a = if(match(_raw, "ERROR"),1,0) only matches for column a if the whole column's contents is just ERROR. However it should match for it even if there is other text in the column (substring match).

Expected behavior

Match a substring, not the full string.

How to reproduce

Run example command mentioned above with _raw column containing ERROR with some other text as well.

Screenshots

Software version

4.17.0

Desktop (please complete the following information if relevant):

Additional context

eemhu commented 8 months ago

internal pr submitted