I've never seen this error code before, nor can I find any documentation on it. Here's the query:
WITH QUERY AS (
SELECT rrn(T1), blah, bleh,
ROW_NUMBER() OVER (order by bleh desc) AS RN
FROM T1
WHERE (
upper(blah) like ('%WEST%')
OR upper(bleh) like ('%WEST%')
)
)
SELECT * FROM QUERY WHERE RN BETWEEN 1 AND 10
The error only happens when upper() is applied.
Error message is "Function not supported for query".