I have the data in the date column = 2019-10-01 00:00:00 UTC, Now how to insert this data into a column without the UTC word ? and Hive should recognize this as timestamp datatype
Asked
Active
Viewed 64 times
1 Answers
0
You can remove UTC using regexp_replace:
select timestamp(regexp_replace('2019-10-01 00:00:00 UTC','\\s*UTC$',''))
Result:
2019-10-01 00:00:00.0
It is successfully converted to timestamp.

leftjoin
- 36,950
- 8
- 57
- 116