Skip to content
Advertisement

ROW type/constructor in BigQuery

Does BigQuery have the concept of a ROW, for example, similar to MySQL or Postgres or Oracle or Snowflake? I know it sort of implicitly uses it when doing an INSERT ... VALUES (...) , for example:

Each of the values would be implicitly be a ROW type of the Inventory table, but is this construction allowed elsewhere in BigQuery? Or is this a feature that doesn’t exist in BQ?

Advertisement

Answer

I think below is a simplest / naïve example of such constructor in BigQuery

Besides using in simple queries, it can also be use in BQ scripts – for example (another simplistic example)

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement