Hey @Product
I have a use case where a CSV file will be inputted into a WF, and the WF will need to check the column headers for any typos, and if any are found, correct the column header(s). In this use case, the CSV file will end up being fed into another system, hence I need to end up with a CSV file. And the files will be quite large so importing into Google Drive as a GSheet, and making the updates there isn't ideal.
Is there any way to modify a column header in an CSV file? One idea I had is to query the entire CSV as JSON (i.e. select * from CSV) and use aliases to correct the column headers (i.e. select mistypedHeader as properHeader), and then convert the resulting JSON body into a CSV - I feel like that could work, but I'm just curious if there's a simpler way.
Thank you