Basically I have the same question as this one How to retrieve the date from a MongoDB ObjectId using SQL
That is, I know how to retrieve the timestamp associated to an ObjectId using pymongo
for example,
ObjectId('5d8dc6e0a26870000101c53d').generation_time
# datetime.datetime(2019, 9, 27, 8, 22, 56, tzinfo=<bson.tz_util.FixedOffset object at 0x000001C2A7F4F1C8>)
but I don't know how to do this with Snowflake. I have a column called _id
containing the MongoDB ObjectIds.
How can I add a new field in my Snowflake table containing the timestamps associated to the ids?