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

feat: support array functions in where clauses #1840

Merged
merged 9 commits into from
Oct 15, 2024

Conversation

icehaunter
Copy link
Contributor

Adds support for:

  1. Usage of array columns in where clauses
  2. Base operators for arrays: @>, <@, &&, ||
  3. Validation for polymorphic operators (anyarray pseudo-type and others), paving way for other functions that accept arrays

Closes #1767, #1766

@icehaunter icehaunter requested a review from alco October 14, 2024 19:31
Copy link

netlify bot commented Oct 14, 2024

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 03af6f8
🔍 Latest deploy log https://app.netlify.com/sites/electric-next/deploys/670d7166846c510008e41131
😎 Deploy Preview https://deploy-preview-1840--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@alco alco left a comment

Choose a reason for hiding this comment

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

🚀

packages/sync-service/lib/pg_interop/array.ex Outdated Show resolved Hide resolved
@icehaunter icehaunter merged commit 3ab27a6 into main Oct 15, 2024
5 of 6 checks passed
@icehaunter icehaunter deleted the ilia/where-clause-array-support branch October 15, 2024 11:31
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.

Implement support for the array type and array operators in WHERE clauses
2 participants