Null Value Replacement
This operator replaces null values of the selected fields in the data set with designated values. It is helpful as a pre-cleansing data step.
Information at a Glance
Note: This operator can only be used with TIBCO® Data Virtualization and Apache Spark 3.2 or later.
|
Parameter |
Description |
|---|---|
| Category | Transform |
| Data source type | TIBCO® Data Virtualization |
| Send output to other operators | Yes |
| Data processing tool | TIBCO® DV, Apache Spark 3.2 or later |
Input
An input is a single tabular data set.
Configuration
The following table provides the configuration details for the Null value Replacement operator.
| Parameter | Description |
|---|---|
| Notes | Notes or helpful information about this operator's parameter settings. When you enter content in the Notes field, a yellow asterisk appears on the operator. |
| Replace Null Columns | Specify the columns to replace null values. For more information, see Null Value Replacement Configuration dialog. Note: For a column with the Boolean data type, the null data must be replaced with either true or false.
|
| Output Schema | Specify the schema for the output table or view. |
| Output Table | Specify the table path and name where the output of the results is generated. By default, this is a unique table name based on your user ID, workflow ID, and operator. |
| Store Results | When set to Yes, the operator saves the results. If set to No, the operator does not save the results. |
Output
Visual Output
A table that displays the output of a data set replacing the null values with designated values.
Data Output
A tabular data set of the newly created table or view.
Example
The following example displays the data set created by replacing the null values with designated values for the given data set, forming a new table using the Null Value Replacement operator.
Data
testset_null: This data set contains the following information:
- Multiple columns namely colint, coldouble, colbool1, colbool2, colbool3, coldate1, coldate2, colts1, and colts2.
- Multiple rows (9 rows).
Parameter Setting
The parameter settings for the testset_null data set are as follows:
-
Replace Null Columns
Column Name Value colint 2 coldouble 0.54 colbool1 1 -
Store Results: Yes
Output
The following figure displays the output for the testset_null data set.