FineDataLink Version
Functional Change
4.0.19
Added a Data Filtering operator, allowing you to filter data.
4.0.28
Allowed you to get data whose value consisted entirely of spaces through filtering by selecting the Null operator.
Data contains null values, and you want to filter out the null data.
The data table contains product contract records from multiple years and you want contract data from 2017 only.
You can use the Data Filtering operator to achieve that.
You can use the Data Filtering operator to obtain the required data through filtering, as shown in the following figure.
The date to be filtered should be in the yyyy-mm-dd HH:mm:ss format. If the data to be filtered is in the yyyy-mm-dd format, transform it to data in the yyyy-mm-dd HH:mm:ss format or use parameters.
Setting Item
Description
Field
Selectable fields include all fields from upstream nodes and operators.
You can search for fields.
Field types are divided into text, value, time, and others. Types that cannot be recognized as the first three types are considered as others.
Operator
The supported operator varies with field types.
Fixed value input box
The value input box such as the date input box and the string input box varies with operators,
where you can enter ${Parameter name} to reference a parameter.
You do not need to enclose the value in the fixed value input box in single or double quotes. If
you select In or Not In as the operator, separate multiple values by comma.
The Contain operator corresponds to the SQL LIKE clause and supports single-value filtering only. For multi-value filtering, use the In and Not In operators.
For example
Remark:
You can add multiple conditions/formulas.
A new expression is joined with existing expressions by the logical AND operator by default. You can click the logical operator button to switch the operator to OR.
Note:
1. In cases where the field type is either text or value, Field Setting offers an In operator, which encompasses both the Equal to operator (=) and the In operator (∈).
2. When you select the Null operator, you can get data with empty values, null values (case-insensitive), and empty strings ("") through filtering. Starting from FineDataLink 4.0.28, you can additionally get data with space values.
3. Starting from FineDataLink 4.1.1, the conditional judgment logic has been standardized. For details, see Judgment Logic Description
Field Type
Selectable Operator
Text
In and Not in
Contain, Not Contain, Begin with, End with, Not Begin with, Not End with, Null, and Not Null
Others
Equal to and Not Equal to
Value
Between, Not Between, Greater Than, Less Than, Greater Than or Equal to, Less Than or Equal to, Null, and Not Null
Date
Between and Not Between
Before, After, Equal to, Not Equal to, Null, and Not Null
You can download the example data:SOrder2.xls
This document aims to filter data where the OrderDate is 2011 and the Freight is greater than 100.
Create a scheduled task.
Add a Data Transformation node.
Click the Data Transformation node, add a DB Table Input operator, and get data in the SOrder2 table.
Since the fields in this table are all of the text type, you need to change date-related fields and value-related fields to date-type and value-type fields, respectively.
Add a Field Setting operator, connect it to the DB Table Input operator, and modify the field type.
Set filter conditions to fetch data where the OrderDate is 2011 and the Freight is greater than 100.
Click Data Preview to view the fetched data, as shown in the following figure.
Add a DB Table Output operator to output the data after filtering.
Click Run in the upper right corner. After successful execution, a message indicating successful execution will be displayed in Log.
You can view the data obtained through filtering in the OrderAfter20110101 table.
Data Filtering enables fuzzy query and filtering of fields without complex SQL statements, improving data processing efficiency. For details, see.Fuzzy Field Querying/Filtering
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy