I am finding a unique case in snowflake function where return type of my function is table.
- Input parameters: INTEGER
- Return parameters: TABLE
Problem statement: I am passing the parameter (one of the column) to function from a table and when there are only one row in the table, I am getting error
SQL compilation error: Unsupported subquery type cannot be evaluated
whereas it's working fine in cases of when number of records in table is more then 1.
My question: is there any pre-requisite for return type as table that number of records in source should be greater than 1 ?