Support where <json_column> -> '<key>' = 'value'
for Qual
type
#26639
kavirajk
started this conversation in
Contribute to Supabase
Replies: 0 comments 2 replies
-
Thanks for the proposal, json query conditions are not supported in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem
Currently if I make SQL with
where
clause involvingJSONB
key matcher,&[Qual]
is getting empty inbegin_scan
method.Example
Let's say we have table like below
Following query returns
&[Qual]
empty as shown below even the actual query contains a validwhere
clause.Current workaround is to match with complete
JSONB
object. Which is highly verbose and impossible sometimes.Proposal:
Support
where <json_column> -> 'key' = 'value'
forQual
type. As a first step I think we should at least fail explicitly for such unsupported operations.Beta Was this translation helpful? Give feedback.
All reactions