QuestionQ25

VerifiedCreating and Managing Fields

Given the following eval statement:

... | eval field1 = if(isnotnull(fieid1),field1,0), field2 = if(isnull  

Which of the following is an equivalent expression using fillnull?

Explanation

fillnull replaces null field values; its default replacement is 0 when no value argument is supplied. A separate fillnull value="NO-VALUE" operation is needed for field2, because that field requires a different replacement value.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!