I have a file with records as below.
s.no,name,Country
101,Raju,India,IN
102,Reddy,UnitedStates,US
here the my country column has data as "India,IN" which is single value and it has comma as well. Can you let me know how to handle this data when we read the file using comma delimiter in spark-scala? I tried with split(",") which did not give me expected output.
for ex: expected output for the first record:
S.no: 101
name: Raju
Country: India,IN