pub fn eliminate_distinct_on_for_dialect(
expr: Expression,
target: Option<DialectType>,
) -> Result<Expression>Expand description
Eliminate DISTINCT ON with dialect-specific NULL ordering behavior.
For dialects where NULLs don’t sort first by default in DESC ordering, we need to add explicit NULL ordering to preserve DISTINCT ON semantics.