Github user nongli commented on the pull request:
https://github.com/apache/spark/pull/11792#issuecomment-198060051
Generated code before:
```
InternalRow scan_row = scan_batch.getRow(scan_batchIdx++);
/* input[0, int] */
boolean scan_isNull = scan_row.isNullAt(0);
int scan_value = scan_isNull ? -1 : (scan_row.getInt(0));
/* input[1, int] */
boolean scan_isNull1 = scan_row.isNullAt(1);
int scan_value1 = scan_isNull1 ? -1 : (scan_row.getInt(1));
if (scan_isNull) continue;
if (scan_isNull1) continue;
/* (input[0, int] >= 2452245) */
boolean filter_value = false;
filter_value = scan_value >= 2452245;
if (!filter_value) continue;
/* (input[0, int] <= 2452275) */
boolean filter_value3 = false;
filter_value3 = scan_value <= 2452275;
if (!filter_value3) continue;
filter_metricValue.add(1);
```
with this patch
```
InternalRow scan_row = scan_batch.getRow(scan_batchIdx++);
/* input[0, int] */
boolean scan_isNull = scan_row.isNullAt(0);
int scan_value = scan_isNull ? -1 : (scan_row.getInt(0));
if (!(!(scan_isNull))) continue;
/* (input[0, int] >= 2452245) */
boolean filter_value2 = false;
filter_value2 = scan_value >= 2452245;
if (!filter_value2) continue;
/* (input[0, int] <= 2452275) */
boolean filter_value5 = false;
filter_value5 = scan_value <= 2452275;
if (!filter_value5) continue;
/* input[1, int] */
boolean scan_isNull1 = scan_row.isNullAt(1);
int scan_value1 = scan_isNull1 ? -1 : (scan_row.getInt(1));
if (!(!(scan_isNull1))) continue;
filter_metricValue.add(1);
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]