Guest User

Untitled

a guest
Apr 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. function intdiv(row, emit) {
  2. emit({ d: row.x / row.y, m: row.x % row.y });
  3. }
  4. bigquery.defineFunction(
  5. 'intdiv',
  6. ['x', 'y'],
  7. [{ 'name': 'd', 'type': 'integer' },
  8. { 'name': 'm', 'type': 'integer' }],
  9. intdiv
  10. );
Add Comment
Please, Sign In to add comment