To handle a headerless CSV source in Azure Data Factory, you can consider the following approaches:
A) Insert a header row: While there isn't a direct method to add a header row during the pipeline execution, you can create a new dataset that includes the desired headers and then use a combination of transformations to map the data from your headerless CSV to this new dataset. You may need to use a derived column transformation to assign names to the columns based on their positions.
B) Derive columns via the delimiter: You can use the derived column transformation to create new columns based on the delimiter. Since your CSV is delimited by a pipe ('|'), you can use string functions to split the data into separate columns. For example, you can use the split
function in the derived column expression to extract values based on the pipe delimiter.
For more detailed guidance, you can refer to the Azure Data Factory documentation on data flows and derived columns.
References: