From 6df47b6726c18c1fc20e001678a8120cbb7aa497 Mon Sep 17 00:00:00 2001 From: Norman Jordan Date: Wed, 27 Nov 2024 15:49:25 -0800 Subject: [PATCH] Updated fillnull doc to match doc for Spark Signed-off-by: Norman Jordan --- docs/user/ppl/cmd/fillnull.rst | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/docs/user/ppl/cmd/fillnull.rst b/docs/user/ppl/cmd/fillnull.rst index e6e022b30e..4a9e38d353 100644 --- a/docs/user/ppl/cmd/fillnull.rst +++ b/docs/user/ppl/cmd/fillnull.rst @@ -11,25 +11,20 @@ fillnull Description ============ -| The ``fillnull`` command replaces null values for one or more fields. +Using ``fillnull`` command to fill null with provided value in one or more fields in the search result. Syntax ============ -fillnull "with" ["," ]... +`fillnull [with in ["," ]] | [using = ["," = ]]` -* field: mandatory. Name of an existing field that was piped into ``fillnull``. Null values for all specified fields are replaced with the value of expression. -* expression: mandatory. Any expression support by the system. The expression value type must match the type of field. +* null-replacement: mandatory. The value used to replace `null`s. +* nullable-field: mandatory. Field reference. The `null` values in the field referred to by the property will be replaced with the values from the null-replacement. -fillnull "using" "=" ["," "=" ]... - -* field: mandatory. Name of an existing field that was piped into ``fillnull``. -* expression: mandatory. Any expression support by the system. The expression value type must match the type of field. - -Example 1: Replace null values with the same value for multiple fields +Example 1: fillnull one field ====================================================================== -The example show to replace null values for email and host with "". +The example show fillnull one field. PPL query:: @@ -44,10 +39,10 @@ PPL query:: | daleadams@boink.com | null | +-----------------------+----------+ -Example 2: Replace null values for multiple fields with different values +Example 2: fillnull applied to multiple fields ======================================================================== -The example show to replace null values for email with "" and null values for host with "". +The example show fillnull applied to multiple fields. PPL query::