"REF not supported with query rewrite"
*Cause: The statement contained a REF operator. Repeatable behavior cannot
be guaranteed with the REF operator. Therefore, query rewrite
cannot support the REF operator.
*Action: Remove the reference to the REF operator or disable the REWRITE
option on the materialized view.