Oracle Message QSM-01016 - Query rewrite does not support, aggregate, string

ERRORQuery rewrite does not support, aggregate, string
CAUSENo query rewrite, if the query contains any DISTINCT aggregates other than COUNT, MIN or MAX.
ACTIONNone