Since Hive runs many mappers/reducers in parallel, there is no way to generate a globally unique increasing row id. If you are OK with that, you can easily write a "non-deterministic" UDF. See rand() (or UDFRand.java) for example.
Please open a JIRA if you plan to work on that. Zheng On Wed, Feb 24, 2010 at 6:47 PM, Weiwei Hsieh <[email protected]> wrote: > All, > > > > Could anyone tell me on how to generate a row id for a new record in Hive? > > > > Many thanks. > > > > weiwei -- Yours, Zheng
