Open ramarnat opened 4 years ago
If your aim is to make avoid writing conditionals, I'm not sure I see a reason to use CSV over a more simple YAML based filtering mechanism. I'm curious what the use case is. Also, what would the CSV look like?
Here is my (albeit) personal workflow:
To answer the specific question, I was thinking the csv would have a column for the CUID (column specified in the yaml example as csv_filter_field
) to identify the stream, and then columns that would override the value that is coming from the stream. In the above example yaml above, you would specify what the mapping is. Any field not mapped, would use the original value.
btw, not proposing for you to build this, I was going to do it for my workflow, but if you have suggestions on how it could be done so it can be accepted as a PR (while still working for my workflow) was the purpose of opening the issue.
Seems like an interesting workflow. Would potentially make the yaml config much simpler. Feel free to raise a PR and I'd be happy to review and accept.
I'll take a crack at it, and post the PR
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
An initial implementation for CSV usage is done in #36, to be merged into master soon. Test it out and let me know!
I would like to suggest a way to specify an input csv file to batch filter/set individual streams:
what do you think @hoshsadiq ?