title: Row number in BigQuery?
body: <p>Is there any way to get row number for each record in BigQuery? (From the specs, I haven't seen anything about it) There is a NTH() function, but that applies to repeated fields.</p>
  
  <p>There are some scenarios where row number is not necessary in BigQuery, such as the use of TOP() or LIMIT function. However, I need it to simulate some analytical functions, such as a cumulative sum(). For that purpose I need to identify each record with a sequential number. Any workaround on this?</p>
  
  <p>Thanks in advance for your help!</p>
  
  <p>Leo</p>