ARRAY<T>
Translation specification for the ARRAY<T> datatype from BigQuery to Snowflake
Description
Sample Source Patterns
Setup data
BigQuery
CREATE TABLE test.arrayTable
(
col1 ARRAY<INT64>
);
CREATE TABLE test.anotherArrayTable
(
col2 ARRAY<INT64>
);
INSERT INTO test.arrayTable VALUES ([4, 10, 55]);
INSERT INTO test.arrayTable VALUES ([6, 7, 33]);
INSERT INTO test.arrayTable VALUES ([50, 12, 22]);
INSERT INTO test.anotherArrayTable VALUES ([9, 11, 52]);
INSERT INTO test.anotherArrayTable VALUES ([3, 18, 11]);
INSERT INTO test.anotherArrayTable VALUES ([33, 27, 43]);Snowflake
INSERT with ARRAY in the VALUES clause
BigQuery
Snowflake
MERGE statement
BigQuery
Snowflake
ARRAY DEFAULT column value insertion/update
BigQuery
Snowflake
INSERT/UPDATE with NULL value
BigQuery
Snowflake
ARRAY access by index
BigQuery
Snowflake
Safe ARRAY access by index
BigQuery
Snowflake
ARRAY concatenation
BigQuery
Snowflake
ARRAY used as parameter/return type
BigQuery
Snowflake
Known Issues
Related EWIs
Last updated
Was this helpful?