While executing an external function, the following error is returned:
Error: Function received the wrong number of rows
What causes this error?
A Snowflake scalar external function may receive multiple rows in a batch, but its remote service must return exactly one output row for each input row. The error occurs when the response contains more or fewer rows than the request contained.
Community Discussion