Skip to content

feat: Adds new filters to increase Postgrest parity#81

Open
filipecabaco wants to merge 1 commit into
masterfrom
feat/add-filters-real-832
Open

feat: Adds new filters to increase Postgrest parity#81
filipecabaco wants to merge 1 commit into
masterfrom
feat/add-filters-real-832

Conversation

@filipecabaco

Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Adds like, ilike, is, match, imatch, and isdistinct filter operators to realtime subscriptions, along with a negate flag on user_defined_filter to support NOT variants (e.g. IS NOT, IS NOT DISTINCT FROM).

This increases our parity with Postgrest filters

https://linear.app/supabase/issue/REAL-832/improve-filter-parity-based-on-postgrest

Comment thread sql/walrus_migration_0015_like_ilike_is_not_ops.sql
Comment thread sql/walrus_migration_0015_like_ilike_is_not_ops.sql
Comment thread sql/walrus_migration_0015_like_ilike_is_not_ops.sql
Comment thread test/expected/issue_55_null_passes_filters.out
Comment thread test/expected/issue_55_null_passes_filters.out
@filipecabaco filipecabaco force-pushed the feat/add-filters-real-832 branch 4 times, most recently from 3cbb2cb to 6f02022 Compare June 2, 2026 16:40
@filipecabaco filipecabaco requested a review from samrose June 2, 2026 16:44
@filipecabaco filipecabaco force-pushed the feat/add-filters-real-832 branch from 6f02022 to 541fd57 Compare June 13, 2026 09:56
Fixes the behaviour where empty array would be handled as a NULL meaning the user could be mislead into thinking that they were properly filtering data when they weren't.

The behaviour now is:
* `NULL` returns all columns
* `{}` errors out so we can inform the user

https://linear.app/supabase/issue/REAL-843/treat-empty-pg-changes-select-as-an-error
@filipecabaco filipecabaco force-pushed the feat/add-filters-real-832 branch from 541fd57 to 5919d30 Compare June 13, 2026 10:18
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