Oracle Message QSM-02083 - mv references PL/SQL function that maintains state

ERRORmv references PL/SQL function that maintains state
CAUSEThe capability in question is not supported when the materialized view references a PL/SQL function that maintains state and which may not return the same value every time it is invoked against the same set of rows.
ACTIONRe-phrase the query to avoid such a PL/SQL function. Or modify the PL/SQL function to avoid state maintenance and change its declaration accordingly.