0
votes

I am having data in my sql table as shown below screenshot, which is having an extra comma in values column after the values. It is actually list of values which is having more values. enter image description here

I have to import this data into a pipe delimited csv file. And it is shown as below screenshot. enter image description here

How will I remove the additional comma from that column while importing the data into a csv file with pipe delimiter.

I am performing the import using an azure data factory pipeline. Is there any way to avoid the extra comma from imported file or while importing?

Is there any way to make this changes at the time of importing the file to an ADLS location through ADF? Any changes that has to be make in ADF?

1
You can either remove it while reading the source (IE a SQL Query/stored procedure) or use a Data Flow to trim the comma in flight. The SQL approach would probably be faster and less expensive. - Joel Cochran

1 Answers

0
votes

As Joel commented, you can just modify your query to do that while extracting. It might look like this:

select ID, timestamp, replace([values], ',', '') as values from [YourTable]

Hope this helped!