Skip to main content

Example Configuration

Reconcile Config

Consider the below tables that we want to reconcile:

categorycatalogschematable_nameschemaprimary_key
sourcesource_catalogsource_schemaproduct_prod
p_id INT,
p_name STRING
,
price NUMBER
,
discount DECIMAL(5,3)
,
offer DOUBLE
,
creation_date DATE
,
comment STRING
p_id
targettarget_catalogtarget_schemaproduct
product_id INT,
product_name STRING
,
price NUMBER
,
discount DECIMAL(5,3)
,
offer DOUBLE
,
creation_date DATE
,
comment STRING
product_id
note

Run with Drop,Join,Transformation,ColumnThresholds,Filter,JDBC ReaderOptions configs

{
"source_catalog": "source_catalog",
"source_schema": "source_schema",
"target_catalog": "target_catalog",
"target_schema": "target_schema",
"tables": [
{
"source_name": "product_prod",
"target_name": "product",
"jdbc_reader_options": {
"number_partitions": 10,
"partition_column": "p_id",
"lower_bound": "0",
"upper_bound": "10000000"
},
"join_columns": [
"p_id"
],
"drop_columns": [
"comment"
],
"column_mapping": [
{
"source_name": "p_id",
"target_name": "product_id"
},
{
"source_name": "p_name",
"target_name": "product_name"
}
],
"transformations": [
{
"column_name": "creation_date",
"source": "creation_date",
"target": "to_date(creation_date,'yyyy-mm-dd')"
}
],
"column_thresholds": [
{
"column_name": "price",
"upper_bound": "-50",
"lower_bound": "50",
"type": "float"
}
],
"table_thresholds": [
{
"lower_bound": "0%",
"upper_bound": "5%",
"model": "mismatch"
}
],
"filters": {
"source": "p_id > 0",
"target": "product_id > 0"
}
}
]
}