A Projection node represents a relational selection (filter) combined with a projection operation. It also allows calculated attributes to be added to the output.
Prerequisites
You have defined the operator with a Projection node and connected the previous node to this node.
Procedure
Double-click the Projection node.
Define the output columns.
If you have connected the previous node to the Projection node, you can map any columns from the input as output columns of the Projection node. You can also add, delete, and rename the columns, as needed.
In the Mapping pane, select a Source column and drag and drop into the Drop row here zone in the Target section.
Optional: To automatically map the columns based on column names, in the Source section, choose (Auto Map by Name).
Optional: To add new output columns, in the Target section, choose + (Add Column) to add new rows and define its data type.
Optional: To use an expression to define an output column, click the required Target column and then define the output column expression in the expression editor.
Optional: To remap an output column with a different source column, right-click the mapping, choose Remap, select a new source column, and choose OK.
Optional: To edit a column name or its data type, select a Target column and choose (Edit).
Optional: To delete a mapping without deleting the output column, right-click the mapping and choose Delete.
Optional: Define additional configurations for output columns.
In the Columns tab toolbar, switch to the Form pane to define additional configurations for output columns.
If you have identical records from the previous node, in the toolbar, select the Distinct checkbox to output unique records only.
If you want to add new output columns by duplicating an existing output column definition, select an output column and in the toolbar, choose .
Under the Primary Key column, select an output column that serves as the primary key.
Typically the data in this column is unique.
Under the Nullable column, choose whether the column value can be empty (nullable).
To reorder the columns, select the column that you want to move and in the toolbar click the up or down arrows.
Optional: Define filters.
For example, if you want to move all the records that are in Canada for the year 2017, your filter might look like the following: "Filter1_input"."COUNTRY" = 'Canada' AND "Filter1_input"."DATE"='2017'
Select the Filter tab to compare the column name against a constant value.
In the expression editor, enter the required expression.
Add and connect new nodes.
If you want to configure the Data Transform operator with another node:
In the menu bar, use the breadcrumb navigation to go back to the node editor.
Optional: Add new nodes.
To connect the nodes, select the output port of a node and drag the cursor to an input port of another node.
Define data target.
It is necessary to create a data target to the node and create an output port for Data Transform operator.
Right-click the output port of the node and select Create Data Target.