ZEROIFNULL Function in Apache Impala

If you’re working on a numeric/integer column and decided to substitute null values with zero, there’s a straight forward function that solves the issue.

The function is ZEROIFNULL. This accepts a single argument and replaces the null values with zero if there is any.

zeroifnull

Let’s implement this function on integer and decimal columns.

zeroifnull1



2 comments

Leave a Reply