In a raw table, the date column has been saved in string format (e.g.,2020-11-19T15:59:30.702+0000). I need to convert this to timestamp format(2020-11-19 15:59:30.702).
I tried with concat_ws cast(concat_ws('.',from_unixtime(unix_timestamp(regexp_replace('2020-11-19T15:59:30.702+0000','T',''), 'yyyy-MM-ddHH:mm:ss')),REGEXP_REPLACE(split(createdat,'\\.')[1],'[^0-9A-Za-z ]+', ''))