Products | Versions |
---|---|
Spotfire Data Science | 6.x |
Error when saving Pig expression in Variable operator - mismatched input ',' expecting LEFT_PAREN
Error when saving Pig expression in Variable operator - mismatched input ',' expecting LEFT_PAREN
Problem
Variable operator configuration having this type of pig snippet to replace NULL values with 0:
(long) REPLACE (PAYMT_AMT ,'NULL','0')
A syntax error was found in the following variables: new: mismatched input ',' expecting LEFT_PAREN Do you wish to continue?
It's possible that one of the column names matches with a Pig reserved word (for example, EQ).
Take a look at the data columns and rename the one that matches with a reserved Pig word.