-
Notifications
You must be signed in to change notification settings - Fork 6
/
validation-example.conf
60 lines (59 loc) · 1.56 KB
/
validation-example.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
connectors: [
{class: "com.kmwllc.lucille.connector.CSVConnector",
path: "/Volumes/Work/lucille/src/test/resources/test.csv", name: "connector1", pipeline: "pipeline1"},
{class: "com.kmwllc.lucille.connector.CSVConnector",
path: "/Volumes/Work/lucille/src/test/resources/test4.csv", name: "connector2", pipeline: "pipeline2"}
]
pipelines: [
{
name: "pipeline1",
stages: [
{
class: "com.kmwllc.lucille.stage.InvalidStage"
}
{
class: "com.kmwllc.lucille.stage.Length",
fieldMapping {
a: "a_length"
}
invalid_property: true
},
{
class: "com.kmwllc.lucille.stage.Length",
fieldMapping {
a: "a_length"
}
conditions = [
{
values = ["MA", "1234", "US", "Russia", "4567"]
operator = "must_not"
},
# todo since validating condition is done by the Conditions class, only the first error is visible
{
fields = ["user_id", "state", "country"]
values = ["MA", "1234", "US", "Russia", "4567"]
operator2 = "must_not"
}
]
}
]
}
{
name: "pipeline2",
stages: [
{
class = "com.kmwllc.lucille.stage.Concatenate"
format_string = "{city}, {state}, {country}"
},
{
class = "com.kmwllc.lucille.stage.Concatenate"
dest = "dest"
format_string = "{city}, {state}, {country}"
default_inputs3 {
"country" : "U.S."
"state" : "MA"
}
}
]
}
]