Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SADeprecationWarning: DISTINCT ON is currently supported only by the PostgreSQL dialect. #234

Closed
utapyngo opened this issue Feb 14, 2023 · 0 comments · Fixed by #293
Closed

Comments

@utapyngo
Copy link

When using .dictinct(Model.field) in a query, there is a deprecation warning:

SADeprecationWarning: DISTINCT ON is currently supported only by the PostgreSQL dialect. Use of DISTINCT ON for other backends is currently silently ignored, however this usage is deprecated, and will raise CompileError in a future release for all backends that do not support this syntax.

According to the documentation, Clickhouse supports DISTINCT ON.

Versions

  • clickhouse-sqlalchemy @ git+https://github.com/xzkostyan/clickhouse-sqlalchemy@03e369d75359d9d10a5d205caed86d3901f23142
  • Python 3.10.
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 a pull request may close this issue.

1 participant