Ambiguous beautifier behavior.

Beautifier could not parse text while case statement followed after over or keep keywords.

Examples:

SQL:
SELECT MAX(dummy) keep(dense_rank FIRST ORDER BY case when (1 = 1) then 1 else 0 end) result
FROM dual;

SQL:
select row_number() over (ORDER BY case when 1 = 1 then 1 else 0 end) rn
from dual;

Should it be fixed?

Version 8.0.0.1480

PS
I get the same result (filtered only by first keyword) while searching this forum for:
+beautifier
+beautifier +keep
+beautifier +over
:(
 
There is no explicit support for analytical functions at the moment. This is on the list of enhancement requests.
 
Another one "could not parse text":

SQL:
SELECT CASE WHEN decode(1,1,
            CASE WHEN 1 = 1 THEN 1 ELSE 0 END) = 1
            THEN 1 END
FROM dual;

But more important bugs relative to beautifier is:
1. Beautify all procedures
2. model clause

Do you have a plan for when this will be fixed?

Thanks for any response!
 
Back
Top