0

I have two columns in my table (date,users) which are strings.

date               users
2019-01-01        '"U10000","U20000"'

I am trying to convert the users column to array<string>, and getting \ in values. I didn't find any spaces in string values, so why am I getting '\' in new array column?

this is my query and the result it produces:

Select date,collect_set(users)  as user_arr from mytable group by date

date                user_arr
2019-01-01      ["\"U10000\",\"U20000\""]
mazaneicha
  • 8,794
  • 4
  • 33
  • 52
Rahul
  • 467
  • 1
  • 8
  • 24

0 Answers0