Aggregator: add the possibility to not raise an exception invalid rows
Closed this issue · 0 comments
ecourtial commented
With the following input sources:
{
"id": "1",
"type": "premium",
"subscriptionNumber": "p123"
},
{
"id": "2",
"type": "standard"
},
{
"id": "3",
"type": "gold",
"subscriptionNumber": "g234"
}
]
1;John;Doe;john.doe@acme.com
2;Jane;Does;jane.does@acme.com
3;Bart;Simpson;el-barto@acme.com
I would like extract data into a CSV, with the following columns :
- id
- type
- subscriptionNumber
The result is the following:
1;john.doe@acme.com;premium;p123
3;el-barto@acme.com;gold;g234
The code works as expected, but it throws an exception because there is one invalid row. This is currently the only way to discard invalid rows.
Could we consider to add a flag or something to be able to keep discarding invalid rows but without throwing an exception, because in some use cases, it could be normal to have invalid rows.