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

Add 4933 PostgreSql array contains operators #5228

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

griffio
Copy link
Contributor

@griffio griffio commented May 6, 2024

fixes #4933

Array contains operators for PostgreSqlDialect

Support <@ and @> for array type, now shared with json, tsvector types
Additionally add && arrays overlap operator

  • Added grammar for contains_operator_expression and resolves expression to Boolean
  • Added fixture test
  • Added integration tests

note: In PostgreSql, arrays of text[] and varchar[] are considered distinct types with the <@ @> && operators

<@ and @> are used by json, tsvector and array

Move the operators to separate mixin
For Array Contains

text[] and varchar[] arrays are different types in Postgresql for contains operator
Add fixture and integration test
@griffio griffio marked this pull request as ready for review May 6, 2024 17:28
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.

Postgres - support array operators
1 participant