I have the data moved from mongodb into AWS Athena. I need to extract the timestamp from the objectId of each of the record using SQL in Athena.
I could find some examples in Postgre, Redshift etc... but not in Athena...
Example input:
507c7f79bcf86cd7994f6c0e
Wanted output in Athena:
2012-10-15T21:26:17Z