# Unsupported Functions & Rewrites

> Unsupported SQL functions and supported alternatives in Transformations SQL

Some Snowflake, Presto, and ANSI spellings are **not supported** in Transformations SQL. Use the supported alternatives below instead of expecting a direct SQL-to-RQL mapping.

| SQL function | Status | Suggested alternative |
| --- | --- | --- |
| `CUME_DIST` | intentionally\_unsupported | No confirmed equivalent; consider PERCENT\_RANK() or RANK() patterns. |
| `FLATTEN` | intentionally\_unsupported | Use table construct CROSS JOIN LATERAL FLATTEN(expr) AS alias(col) or CROSS JOIN UNNEST(expr) AS alias(col) — not scalar FLATTEN(). |
| `GROUP_CONCAT` | intentionally\_unsupported | Use LISTAGG(expr, separator) WITHIN GROUP (ORDER BY expr). Confirmed rewrite: LISTAGG(full\_name, ', ') WITHIN GROUP (ORDER BY full\_name). |
| `NTH_VALUE` | intentionally\_unsupported | Unsupported; consider FIRST\_VALUE/LAG/LEAD or ROW\_NUMBER filtering via QUALIFY. |
| `NTILE` | intentionally\_unsupported | Unsupported; no confirmed equivalent. Use NTILE-like bucketing via manual CASE on PERCENT\_RANK() if needed. |
| `PERCENTILE_CONT` | intentionally\_unsupported | Use PERCENTILECONT(value\_expr, percentile). Example: PERCENTILECONT(employee\_number, 0.5). |
| `SPLIT_TO_TABLE` | intentionally\_unsupported | Use CROSS JOIN LATERAL FLATTEN(expr) AS alias(col) or CROSS JOIN UNNEST(expr) AS alias(col). |

### Notes

-   Supported functions with caveats (for example window functions in `WHERE`) may include rewrite guidance on their individual reference pages — this table covers **intentionally unsupported** functions only.
-   Table constructs such as `LATERAL FLATTEN` and `UNNEST` are documented under supported constructs, not here.

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/unsupported-rewrites

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
