teragrep / pth_10

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

rex4j produces empty strings instead of nulls for empty result #257

Closed eemhu closed 3 months ago

eemhu commented 3 months ago

Describe the bug

rex4j empty rows should be null instead of empty string

Expected behavior

These empty rows should be of a standardized null value instead of an empty string so isnull() and isnotnull() will pick up on these values.

How to reproduce

Use rex4j with a non-matching capture group which will result in empty rows in the result column.

Screenshots

Software version

5.1.1

Desktop (please complete the following information if relevant):

Additional context

rex already behaves like this, rex4j should do the same.

eemhu commented 3 months ago

internal PR submitted and up for review

51-code commented 3 months ago

internal PR reviewed