| { |
| "name": "accu_batch", |
| "process.type": "batch", |
| "data.sources": [ |
| { |
| "name": "source", |
| "connector": { |
| "type": "file", |
| "config": { |
| "format": "avro", |
| "paths": [ |
| "src/test/resources/users_info_src.avro" |
| ] |
| } |
| } |
| }, |
| { |
| "name": "target", |
| "connector": { |
| "type": "file", |
| "config": { |
| "format": "avro", |
| "paths": [ |
| "src/test/resources/users_info_target.avro" |
| ] |
| } |
| } |
| } |
| ], |
| "measures": [ |
| { |
| "name": "accuracy_measure", |
| "type": "accuracy", |
| "data.source": "target", |
| "config": { |
| "ref.source": "source", |
| "expr": [ |
| { |
| "source.col": "user_id", |
| "ref.col": "user_id" |
| }, |
| { |
| "source.col": "first_name", |
| "ref.col": "first_name" |
| }, |
| { |
| "source.col": "last_name", |
| "ref.col": "last_name" |
| }, |
| { |
| "source.col": "address", |
| "ref.col": "address" |
| }, |
| { |
| "source.col": "email", |
| "ref.col": "email" |
| }, |
| { |
| "source.col": "phone", |
| "ref.col": "phone" |
| }, |
| { |
| "source.col": "post_code", |
| "ref.col": "post_code" |
| } |
| ] |
| }, |
| "out": [ |
| { |
| "type": "metric", |
| "name": "accuracy_metric", |
| "flatten": "map" |
| } |
| ] |
| } |
| ], |
| "sinks": [ |
| "consoleSink", |
| "customSink" |
| ] |
| } |