UP10100 - Can not Select Records in an UNNEST Statement
Possible Causes
You tried to select an expression of type row/record within an UNNEST SELECT statement which is not supported. For 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