Column Expressions - discrepancy between evaluation and actual computed value

Hello KNIME Team,
I noticed a discrepancy in between the evaluation of a formula and the actual computed value showed in the table, in the Column Expressions node. More specifically, when I use the rowIndex() function. See below:

And the actual table.
table

1 Like

Hi @toscano, I believe this is a long-standing bug in Column Expressions and yes there is a discrepancy of the returned row index: when evaluate on first row is pressed it returns 1 but in execution returns the correct rowindex (i.e. 0) for first row, which can cause unexpected behaviour for certain use cases such as yours.

For historic references see:

I’m guessing that fixing this one didn’t get a priority! :wink:

3 Likes