When you configure a mapping that reads data from an HBase source, you can enter a filter expression to filter records read from the source.
You can select the mapping and add the filter expression in the Query tab in the Properties view. You can use any comparison operators in the filter expression.
When you run the mapping, the Data Integration Service filters the source data based on the expressions.
For numeric data types, the Data Integration Service applies the operators for positive values and not for negative values.
When you enter multiple filter expressions, the AND logical operator is applied between the expressions.
If you use the not equal, less than, less than or equal to operators and some columns do not meet the filter condition, the Data Integration Service returns a Null value for these columns. If you use the equal, greater than, greater than or equal to operators and some columns do not meet the filter condition, the Data Integration Service does not return the rows associated with these columns.
The following table lists the columns in the CF column family in an HBase table. There are rows that have c1 and c2 columns, rows that have at least one of the columns, and rows that have neither of the columns.
Create an HBase data object called Name and add it to an HBase mapping. Add the following filter expressions:
Name.CF__C1 = 'john' AND Name.CF__C2 = 'jane'
The Data Integration Service returns the following output because of the equal to operator in the filter expressions. The service does not return rows that contain null values.
However, the output is different when you add the following filter expressions:
Name.CF__C1 != 'john' AND Name.CF__C2 != 'jane'
The Data Integration Service returns rows that contain null values because of the not equal to operator in the filter expression.