MSCINF0005
Accessing arrays produces NULL instead of an error for positive out of bounds indexes in Snowflake
Last updated
Accessing arrays produces NULL instead of an error for positive out of bounds indexes in Snowflake
Last updated
This is a deprecated version of the SnowConvert documentation, please visit the official site .
None
When accessing an ARRAY object by index in Snowflake, specifying an index greater than the size of the array will result in a NULL value, this differs with the behavior of BigQuery, where accessing an ARRAY with an index that is out of bounds will produce an error, unless the functions SAFE_OFFSET
or SAFE_ORDINAL
are used.
This warning will be added to any ARRAY access that is not safe.
Analyze the uses of array access in the code, if there was never the risk of getting an out of bounds error in the original code then no difference will be observed and this warning can be safely ignored.
If you need more support, you can email us at