Given a query, select * from ... (that might be part of CTAS statement)
select * from ...
The goal is to add an additional column, ID, where ID is a
ID
Check this out for a globally unique id service https://github.com/spinaki/distributed-unique-id It has a docker image too which you can test quickly.