I have a csv data file in blob and I am trying to create an external table on it. Here's how the file looks like in text editor -
"ABC"|"123"|"ID1"
"XYZ"|"456"|"ID2"
When I create an external table with pipe as delimiter and then query the individual columns, I see these values -
value:c1|value:c2|value:c3
"\"ABC\"" "\"123\"" "\"ID1\""
"\"XYZ\"" "\"345\"" "\"ID2\""
Is there something that I need to add to field_optionally_enclosed_by option? I am easily able to do
select replace(value:c1,'\\"'),replace(value:c2,'\\"'),replace(value:c3,'\\"') from testable
and this gives me back
value:c1|value:c2|value:c3
"ABC" "123" "ID1"
"XYZ" "345" "ID2"
Any suggestions?