DBTimes

Home

Products

Frameworks

Contact us

Source Comparer Configuration

Type: object

Defines required fields for the application that uses the DW Source Comparer library. The application configuration can have other root-level fields.

Type: object

Configuration for source compare

Type: array of object

Specifications for comparing sources

No Additional Items

Each item of this array must be:

Type: object

Type: string

The name of the compare scenario, used to differentiate multiple scenarios. Names must be unique.

Type: boolean

If the value of isActive is false, the compare scenario will not be processed.

Type: boolean

If the value is true, the library will send some dataframe-related output to standard output, which slows down job execution.

Type: number

When comparing two floating-point values, they will be considered equal if the absolute value of their difference is less than floatThreshold.

Type: string

When comparing two timestamp fields, they will be truncated using the defined unit before being compared.

Must match regular expression: ^(?i)(year|yyyy|yy|month|mon|mm|day|dd|microsecond|millisecond|second|minute|hour|week|quarter)$

Type: string

When comparing two date fields, they will be truncated using the defined unit before being compared.

Must match regular expression: ^(?i)(year|yyyy|yy|month|mon|mm|week|quarter)$

Type: number

When defined, the number of reported differences for each column will not exceed the specified value. That will reduce the size of the resulting differences file.

Type: object

Specification for the result of the comparison

Type: object

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Type: array of object

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:

Type: object

Type: boolean

At least one column must have this property set to true.
Multiple columns can be designated as unique keys to create a compound unique key.
By default, a unique key is included unless the isInclude value is set to false.

Type: boolean

By default, all columns are compared and included in the comparison result, unless at least one column has an explicit isInclude flag set (to true or false).
If that's the case, only columns with the isInclude flag set to true will be compared and included in the comparison result.
If columns are listed that do not have the isInclude flag, they will be ignored, unless they are keys.
For keys (isUniqueKey is set to true), the default for isInclude is true.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

At least one of the items must be:

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Compare source

Type: object

The first (left) source to compare. Both the left and right sections are identical in structure, but they can have different types of sources. For example, one can be a DBMS and the other a file. The sets being compared must have common columns that match compareResult.schema.

Type: object

If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.

Type: object

If any column in the schema defines "formats", the source must be a csv file.

Type: object

Type: object

The following properties are required:

  • csv

Type: object


Type: object

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Type: object

Type: object

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Type: object


Type: object

JDBC Options

Type: object

Options for the SQL Server JDBC connection.

Must not be:

Type: object

"partitionColumn" is excluded from the list of options for the JDBC source, since this column has to be defined in "schema" with the "isPartitionColumn" flag.

The following properties are required:

  • partitionColumn

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Type: object

JDBC Options

Type: object

Options for the Oracle JDBC connection.

Same definition as sqlServer

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Type: object

Type: object

Properties for mongoDb can be any of the options supported by the MongoDB Spark connector in batch mode. The schema must be defined.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

Type: string

Used to identify the source in the compare results. If none is defined, the default is "left" for the first source and "right" for the second one.

Type: array of object
No Additional Items

Each item of this array must be:


Type: object

If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.

Type: object

If "isPartitionColumn" attribute of a column is set to true, colType must be defined (it is needed to determine the type of the upper and lower bounds).

The following properties are required:

  • colType
Type: object

If the conditions in the "If" tab are respected, then the conditions in the "Then" tab should be respected. Otherwise, the conditions in the "Else" tab should be respected.

Type: object

The following properties are required:

  • formats
Type: object

"formats" is only allowed for columns of type Timestamp or Date, so "colType" must be defined and be one of them.

Type: object
Must match regular expression: ^([Tt][Ii][Mm][Ee][Ss][Tt][Aa][Mm][Pp]|[Dd][Aa][Tt][Ee])$

Type: boolean

For a DBMS source, one column can be defined as the partition column to read data on multiple connections in parallel. isPartitionColumn must be defined if numPartitions is defined.

Type: array of string

Allowed formats for a Timestamp or Date column when loaded from a csv file. Requires colType to be Timestamp or Date.

Must contain a minimum of 1 items

No Additional Items

Each item of this array must be:


A query to create a subset of columns and/or rows to compare. It can be any valid select statement using Spark SQL syntax, executed on the data loaded from the source. The source table must be designated by three underscores, e.g., SELECT CAST(id AS INT) AS id FROM ___ . If not defined, all fields and all rows from the source will be used.

Type: string
Must match regular expression: ^.*___.*$
Type: array of string
No Additional Items

Each item of this array must be:

At least one of the items must be:

Type: object
Must match regular expression: ^.*___.*$

Compare source

Type: object

The second (right) source to compare. Both the left and right sections are identical in structure, but they can have different types of sources. For example, one can be a DBMS and the other a file. The sets being compared must have common columns that match compareResult.schema.

Same definition as leftSource

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.

All properties whose name matches the following regular expression must respect the following conditions

Property name regular expression: ^__
Type: string, number, integer, boolean, object, array or null

Comment field begins with two underscores. There can be any number of comment fields.