Filter Node Icon
The Clario Filter node allows you to select rows from an input data stream based on specific selection criteria. The node connector can be connected to a variety of nodes, (e.g. Read File, Aggregate, Append, Missing, etc.), but requires a valid stream of data.
The Filter node has only one configuration tab.
Configuration
To edit the selection criteria you can either: click [Edit Filter] to open the Filter Builder or click [Edit Code] to open the Filter Code Editor.
The upper right view contains filter code. This view is read only, to edit it directly open the Filter Code Editor. The code view is highlighted based on the contents of the main work area. It also displays any errors in red, giving you a better indication where the error exists.
The center of the screen contains [Home] and [Back] buttons, to assist in navigation in and out of nested functions. Below the [Home] and [Back] buttons is the main work area, where functions, attributes, and constants will be placed. When finished adding code to the main work area, click [Save] (bottom right) to save and exit to the Filter Configuration tab. Or, click [Cancel] to exit without saving.
The far left box contains three tabs located at the top of the box:
Select a function, attribute, or constant, then drag and drop it into the main work area. See tips on Finding and Selecting Attributes.
Filter Builder
See what Functions, Operators, and Constants can be used in the Filter node.
The code editor is an advanced feature giving you the ability to create a Filter with code instead of the builder. Once you’ve entered your code, click [Check] to verify it is syntactically correct. Any syntax errors that exist are displayed in the Messages window. Your code must be syntactically valid in order to save. In addition to syntax verification, the check operation will validate your Filter code, displaying any validation errors in the Message window. Unlike syntax errors, it is OK to save an invalid Filter just like you can in the builder. Refer to the complete coding guide for more information.
Filter Code Editor
Initially the Filter window is empty. To construct a filter, click the [Edit Filter] button in the bottom center of the Filter window. This will take you to the Filter Builder.
Empty Filter
The following is an example of how to build a filter based on an inequality expression:
Blank work area
One attribute
Attribute and a constant
Dropdown operator
Attributes (and constants) can be dropped above or below existing attributes on the work area. Once on the main work area, items can also be re-ordered by dragging and dropping them above or below existing items. Furthermore, items can be move to within a function parameter by moving the item on top of the function parameter box. To ensure that the item will go within the function, wait until the function box turns green. If there are errors within the filter equation, the filter box will be highlighted in red. If you hold the mouse over the box, an informative error message will appear.
Inequality complete
Below is a more complicated example of a Filter that uses logical operators and the Sqrt function.
More complicated Filter
See the Filter Node Results.
The newly filtered dataset is ready for immediate use in other nodes to explore, manipulate, cleanse, and model the data. The data can be exported at any point in a workflow by using Write File node.