I need to create a table in Redshift using the data source in S3. There are a couple of columns have datetime like string value. I want the Redshift treats it like timestamp. If I just assign timestamp to those columns during the table creation, would it work or does it need additional steps?
The reason I have those columns as string is those columns were created by Python code and run into json serialization problem at first :How to overcome "datetime.datetime not JSON serializable"?
My input data is:
{
"created_date": "2019-06-21 23:32:28",
"resolved_date": ""
"last_updated_date": "2019-06-23 04:08:35"
}
In Redshift, I want to make the columns in timestamp fomat
"created_date": timestamp,
"resolved_date": timestamp,
"last_updated_date": timestamp
Will Redshift recognize my data and parse it as timestamp?
Any pointers are appreciated.