Log in
Sign up
See new Tweets

Conversation

JSON Baumgartner
@jasonbaumgartne
So you thought arrays should start at 1 instead of 0.
Embedded video
GIF
1:17 AM · May 22, 2018·Twitter Web Client
1
Like
Felipe Hoffa
@felipehoffa
·
May 22, 2018
Replying to
@jasonbaumgartne
But then our SQL forefathers thought 1 was the right place to start (https://dba.stackexchange.com/questions/125950/why-do-string-functions-on-sql-based-database-servers-start-at-position-1-instea…). Hence BigQuery with #standardSQL allows you to choose between OFFSET (0) and ORDINAL (1) when working with arrays. https://cloud.google.com/bigquery/docs/reference/standard-sql/arrays#accessing-array-elements…. I love SQL, but...
cloud.google.com
Work with arrays  |  BigQuery  |  Google Cloud
1