| { |
| "name": "prof_batch", |
| "process.type": "batch", |
| "data.sources": [ |
| { |
| "name": "source", |
| "connector": { |
| "type": "file", |
| "config": { |
| "format": "avro", |
| "paths": [ |
| "src/test/resources/users_info_src.avro" |
| ] |
| }, |
| "pre.proc": [ |
| "select * from this where user_id < 10014" |
| ] |
| } |
| } |
| ], |
| "measures": [ |
| { |
| "name": "profiling_measure", |
| "type": "profiling", |
| "data.source": "source", |
| "config": { |
| "expr": "first_name, user_id", |
| "approx.distinct.count": true, |
| "round.scale": 2 |
| }, |
| "out": [ |
| { |
| "type": "metric", |
| "name": "prof_metric", |
| "flatten": "map" |
| } |
| ] |
| } |
| ], |
| "sinks": [ |
| "CONSOLESink", |
| "customSink" |
| ] |
| } |