You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
query a stored range with the Postgres range operators #821
I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.
Is your feature request related to a problem? Please describe.
Filtering or sorting on a range attribute fails: Unsupported expression in Elixir.AshPostgres.SqlImplementation query: ... Ash.Query.Function.RangeLower.
A range is stored natively since #817, but none of its expressions render, so the column's own operators are unreachable.
Describe the solution you'd like
Render the range expressions to their Postgres equivalents: range_overlaps/2 to &&, range_lower/1 and range_upper/1 to lower() and upper(), and range_contains/2 and range_adjacent/2 to @> and -|- once ash#2877 lands.
The rendering belongs in ash_sql, and the tests here, as ash_sql#245 and #814 did for Duration.
Activity
matt-beanland commentedon Sep 19, 2026
Will close as this was done in ash-project/ash_sql#248 and tests in #822