DBTimes
Defines required fields for the application that uses the DW Source Comparer library. The application configuration can have other root-level fields.
Configuration for source compare
Specifications for comparing sources
No Additional ItemsThe name of the compare scenario, used to differentiate multiple scenarios. Names must be unique.
If the value of isActive is false, the compare scenario will not be processed.
If the value is true, the library will send some dataframe-related output to standard output, which slows down job execution.
When comparing two floating-point values, they will be considered equal if the absolute value of their difference is less than floatThreshold.
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)$
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)$
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.
Specification for the result of the comparison
Properties for the CSV file. By default, the saved file is multiline.
All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:^__
Comment field begins with two underscores. There can be any number of comment fields.
Must contain a minimum of 1 items
Column name
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.
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:^__
Comment field begins with two underscores. There can be any number of comment fields.
true
All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:^__
Comment field begins with two underscores. There can be any number of comment fields.
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.
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.
If any column in the schema defines "formats", the source must be a csv file.
All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:^__
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:^__
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:^__
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:^__
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:^__
Comment field begins with two underscores. There can be any number of comment fields.
Options for the SQL Server JDBC connection.
"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.
All properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:^__
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:^__
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:^__
Comment field begins with two underscores. There can be any number of comment fields.
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:^__
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:^__
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:^__
Comment field begins with two underscores. There can be any number of comment fields.
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.
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.
true
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).
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.
"formats" is only allowed for columns of type Timestamp or Date, so "colType" must be defined and be one of them.
^([Tt][Ii][Mm][Ee][Ss][Tt][Aa][Mm][Pp]|[Dd][Aa][Tt][Ee])$
Column name
Column type
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.
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
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.
^.*___.*$
^.*___.*$
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 leftSourceAll properties whose name matches the following regular expression must respect the following conditions
Property name regular expression:^__
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:^__
Comment field begins with two underscores. There can be any number of comment fields.