I have a csv file which I am trying to process using Azure Data Lake Analytics U-SQL. I am fairly new to U-SQL so please bear with me. The original file is semi-structured which I managed to fix using the silent:true flag. Now that it is more structured, I would like to fill the empty cells with the data in the above cells.
My data looks like this: CSV with empty cells
My problem lies with the empty cells in the first four columns.
The second row has data which I would like to copy down into the empty cells below it (rows 3-5). The data from row 7 needs to be copied down to row 8, the data from row 9 to be copied down to rows 10-13 and the data from row 14 to be copied to rows 15-18.
This has to be done without changing the values in the 'Amount claimed' column.
Does anyone have any ideas on how to achieve this in U-SQL?
Thank you.