skipArgs()
The skipArgs() method is used to avoid passing the first N arguments of each data row to certain methods.
The skipArgs() method can be used to avoid passing arguments to the following methods:
- evaluate() for a UDSF
- processRow() for a UDTF
- accumulate() for a UDAF
Skipped arguments are passed to the following methods:
- initialize() for all UDXs
- calculateShape() for a UDTF
Example
-- do not pass the first two argument for each row
function skipArgs()
return 2
end