I’m using Databricks’ COPY INTO to load data from a CSV file into a Delta table. My input CSV looks like this:
CSV file
column1(string),column2(string)
"[\,\,111\,222\,]","012\"34"
After running COPY INTO, my Delta table currently contains:
column1(string) column2(string)
However, I’d like to remove all backslashes so that the table ends up as:
column1(string) column2(string)
What is the most efficient way to strip out backslashes as part of the COPY INTO operation (without a separate UPDATE or extra write)?
Please excuse any grammatical errors, as I’m not very proficient in English.