When running an analysis built on an RPD-based Data Model that connects to Snowflake, OAC incorrectly injects an Oracle-specific WHERE rownum <= 500001 clause into the generated SQL.Snowflake does not support ROWNUM → query fails immediately with:
SQL compilation error: error line X at position Y invalid identifier 'ROWNUM'
Example of the failing generated SQL:
SELECT ...FROM ...WHERE ... AND rownum <= 500001 -- ← This causes the error in Snowflake
Expected Behavior: OAC should generate Snowflake-compatible row-limiting syntax when the database type is Snowflake, for example:
FETCH FIRST 500001 ROWS ONLY
OR
LIMIT 500001
Any tips, known workarounds, or patches would be greatly appreciated to fix this error!