Skip to content

Conversation

@nnamdi16
Copy link
Contributor

What motivated this PR?
Exasol doesn't support passing parameters to the RANK which is supported by some dialect such as spark and databricks.

How is the existing logic in main incorrect?
For example when transpiling from databricks or spark to exasol SELECT a, b, rank(b) OVER (ORDER BY b) FROM (VALUES ('A1', 2), ('A1', 1), ('A2', 3), ('A1', 1)) AS tab(a, b) This would fail in exasol because passing parameters to rank is not supported.

How does the PR address the aforementioned issues?
The PR ignores the parameter passed to the RANK function.

Provide documentation for the SQL functions involved in the implementation & explain whether semantics change / are preserved
The links to documentation - https://docs.exasol.com/db/latest/sql_references/functions/alphabeticallistfunctions/rank.htm. There are no semantics changes in the generator only the parameter is ignored

@nnamdi16 nnamdi16 closed this Nov 25, 2025
@nnamdi16 nnamdi16 reopened this Nov 25, 2025
Copy link
Collaborator

@georgesittas georgesittas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@georgesittas georgesittas merged commit f758cea into tobymao:main Nov 25, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants