Hi Dmitry,
clearly not a bug.
Window functions are not valid in WHERE clauses and not deterministic if ORDER BY hasn't been specified for the SQL.
SAP HANAs SQL transforming optimizer will unroll the view definition in order to be able to apply more optimizations. This will eventually change the level where the ROW_NUMBER() function is applied.
- Lars