Message Oracle QSM-02123 - subquery and UNION mvs must be primary key mvs

ERRORsubquery and UNION mvs must be primary key mvs
CAUSEThe capability in question is not supported when the materialized view is not a primary key materialized view and uses subqueries or the union operator in this context.
ACTIONRe-create the materialized view as a primary key materialized view.