While selecting a set of records from a big data hive table, a unique key needs to be created for each record. In a sequential mode of operation , it is easy to generate unique
Use UUID instead of numbers. It works in a true distributed way.
select reflect("java.util.UUID", "randomUUID")