procheck Configuration Parameters
The following is an example of the procheck configuration file in the YAML format:
procheck_options:
skip_lobs: true
skip_auto_count_test: true
skip_passed_tables: true
source:
driver_name: oracle
host: 192.168.23.251
port: 1523
database: db18c
username: pg_migr
password: <password>
destination:
driver_name: pgx
host: 192.168.21.191
port: 5432
database: parus
username: data_quality
password: <password>
max_conn: 10
comparison_rules:
schema1:
source_schema: xpress
destination_schema: xpress
exclude_tables: [unnecessary_table]
tests:
- name: test1
tables: [all]
type: count
- name: test2
tables: [all]
type: max_id
schema2:
source_schema: src_schema
destination_schema: dst_schema
table_mapping:
src_table1: dst_table1
src_table2: dst_table2
src_table3: dst_table3
column_mapping:
src_table1:
src_column1: dst_column1
src_column2: dst_column2
skip_lobs:
table1: true
table2: false
exclude_columns:
table1: [column1, column2]
table2: [column3, column4]
source_where:
src_table4: id >= 100 AND id < 1000
tests:
- name: test1
tables: [src_table1, src_table2]
type: count
- name: test2
tables: [all]
exclude_tables: [src_table1]
exclude_columns:
table3: [column5]
type: all_rows
- name: test3
tables: [all_other]
type: max_id
source_where:
src_table3: src_id >= 100 AND src_id < 1000
destination_where:
dst_table3: dst_id >= 100 AND dst_id < 1000
- name: test4
tables: ['@filename.txt']
type: table_list
- name: test5
type: query
source_query: SELECT col1, COUNT(*) FROM src_schema.table1 GROUP BY col1
destination_query: '@query2.sql'
The table below explains procheck configuration parameters. Note that some global configuration parameters can be redefined at the level of the schema and some parameters can be specified both at the schema level and for individual tests. Lower-level configuration parameters with the same name redefine the higher-level ones. Refer to an example of the configuration file:
| Name | Description | Default Value | Example |
|---|---|---|---|
|
Global configuration parameters |
||
Exclude columns of the |
|
|
|
Defines additional PostgreSQL data types that are compared by computing their MD5 hashes, in addition to those that are always compared this way, such as |
|
||
Turns off automatic execution of |
|
||
Turns off displaying detailed information on tables with the |
|
||
|
Minimum number of errors that interrupts execution of |
|
|
Approximate number of rows in chunks into which the table is split during execution of |
|
||
Maximum number of table chunks compared in parallel for |
|
||
Maximum number of tables compared in parallel. If the value is less than or equal to zero, the default value is used. |
|
||
|
Defines processing of Oracle empty strings. If |
|
|
|
Array of string values equivalent to boolean |
|
|
|
Array of string values equivalent to boolean |
|
|
|
Minimum number of consecutive 9 or 0 in the fractional part that causes rounding of the number to the previous decimal place |
|
|
|
Number of decimal places to which the number is rounded when compared. If the value is less than zero, the whole-number part is rounded to the nearest 10^(- |
|
|
|
List of Oracle data types for which |
|
|
|
List of PostgreSQL data types for which |
|
|
|
Skip errors of impossible comparison of different types in |
|
|
The time zone for the values of the |
|
||
Configuration parameters to set up the connection to the source DB |
|||
|
Driver for the connection. Possible values: |
||
|
Host name |
||
|
Connection port |
|
|
|
Name of the database to connect to |
||
|
Connection login |
||
|
Connection password |
||
|
Maximum number of connections to DB. If the value is less than or equal to zero, the number is unlimited. |
Unlimited |
|
Configuration parameters to set up the connection to the destination DB |
|||
|
Driver for the connection. Possible values: |
||
|
Host name |
||
|
Connection port |
|
|
Name of the database to connect to |
|||
|
Connection login |
||
|
Connection password |
||
|
Maximum number of connections to DB. If the value is less than or equal to zero, the number is unlimited. |
Unlimited |
|
|
Additional connection parameters |
||
|
For the Parquet destination, all the data files are assumed to be located in subdirectories of the |
|
|
|
Number of rows in a data batch that is read from a parquet file at a time during a row-by-row comparison. |
|
500000 |
|
The corresponding DuckDB setting |
|
|
|
The corresponding DuckDB setting |
20GB |
|
|
The corresponding DuckDB setting. This value is advisory. The actual memory consumed can exceed it. |
4GB |
|
Data comparison rules |
|||
|
Schema name in the source DB |
||
|
Schema name in the destination DB |
||
Comma-separated list of tables excluded from all tests. Enclosed in square brackets. Can contain a special value, such as '@filename', which means that the list should be read from the file specified by this value. |
[unnecessary_table] or ['@filename.txt'] |
||
Mapping of table names |
|
||
List of table columns to be excluded from all tests. |
|
||
Mapping of column names in tables |
|
||
Redefines the |
|
||
Take into account trailing spaces when comparing string types. By default, they are not taken into account. This parameter can be defined at the schema level and also globally. |
|
||
Filtering condition for the source table. An SQL statement that returns |
|
||
Filtering condition for the destination table. An SQL statement that returns |
|
||
|
Tests for the comparison rule |
||
|
Name of the test |
||
Type of the test. Refer to procheck Types of Tests for the list of possible values. |
|||
Comma-separated list of tables to perform the test for. Enclosed in square brackets. Can contain special values:
|
|
||
Text of the source query for a test of the |
|
||
Text of the destination query for a test of the |
|