I have a hive column which has unknow numbers of leading and trailing double quotes in column.The column has double quotes inside data as well.
For example column looks like this
I want output like below
I have written a pyspark code where I can just strip the " and it works,but I want a solution in hql. I have also tried regexp_replace like
regexp_replace(test,'^"|^""|""$|"$', "")
but this is kind of hardcoding. Can someone please provide a generic solution for this?