UP10100 Cannot Select Records in an UNNEST Statement
You tried to select an expression of type row/record within an UNNEST SELECT
statement which is not supported.
Possible Causes
Example:
Here, MAP_WITH_INDEX
returns a row type with multiple subfields, this can't appear in the SELECT CLAUSE
of an UNNEST
query.
Possible Solutions
Use a LET
statement and select specific fields of the resulted record, for example:
By incorporating the LET
statement and making use of the subfields fields (email_records[].index
and email_records[].value
), you can appropriately handle the record-type expression within the UNNEST SELECT
statement.
Last updated