tSchemaComplianceCheck for Apache Spark Streaming
These properties are used to configure tSchemaComplianceCheck running in the Spark Streaming Job framework.
The Spark Streaming tSchemaComplianceCheck component belongs to the Data Quality family.
The component in this framework is available in all Talend products with Big Data and in Talend Data Fabric.
Basic settings
Properties | Description |
---|---|
Base Schema and Edit schema |
|
Base on default schema |
Select this option to carry out all checks on all columns against the base schema. |
Custom defined |
Select this option to carry out particular checks on particular columns. When this option is selected, the Columns table shows. |
Checked Columns |
|
Use another schema for compliance check |
Define a reference schema as you expect the data to be, in order to reject the non-compliant data. It can be restrictive on data type, null values, and/or length. |
Discard the excess content of column when the actual length is greater than the declared length |
With any of the three modes of tSchemaComplianceCheck, select this check box to truncate the data that exceeds the length specified rather than reject it. Information noteNote:
This option is applicable only on data of String type. |
Advanced settings
Properties | Description |
---|---|
Ignore TimeZone when Check Date |
Select this check box to ignore the time zone setup upon date check. Not available when the Check all columns from schema mode is selected. |
Treat all empty string as NULL |
Select this check box to treat any empty fields in any columns as null values, instead of empty strings. By default, this check box is selected. When it is cleared, the Choose Column(s) table shows to let you select individual columns. |
Global Variables
Variables | Description |
---|---|
Global Variables |
ERROR_MESSAGE: the error message generated by the component when an error occurs. This is an After variable and it returns a string. This variable functions only if the Die on error check box is cleared, if the component has this check box. A Flow variable functions during the execution of a component while an After variable functions after the execution of the component. To fill up a field or expression with a variable, press Ctrl+Space to access the variable list and choose the variable to use from it. For more information about variables, see Using contexts and variables. |
Usage
Usage guidance | Description |
---|---|
Usage rule |
This component is used as an intermediate step. |
Spark Connection |
In the Spark
Configuration tab in the Run
view, define the connection to a given Spark cluster for the whole Job. In
addition, since the Job expects its dependent jar files for execution, you must
specify the directory in the file system to which these jar files are
transferred so that Spark can access these files:
This connection is effective on a per-Job basis. |