Can it be considered a bug? This query gives duplicate values despite DISTINCT:
select distinct '1'
from
(
select *
from dual
connect by level <= 10
)
order by dbms_random.value
fetch first 10 rows only
I understand it creates additional column with random values and uses distinct with two columns, but still I expect to get unique values.
fetch first n rows only
clause shouldn't change the number of rows returned (dbfiddle.uk/EgS0a4FZ). Have you submitted a bug report to Oracle to confirm?