Hello
I have the following subquery which doesnt give me a result at all
select * from ap
where custId in ( select distinct RAW b.custId from ap
b where b.baId=‘12345’)
Both custId and baId are simple string attributes and are not array
What would be possibly wrong here , that query doesnt give a result at all here
Documents in my bucket are as mentioned below
AP* is the document key and rest is the value
AP1 : {“Name” : “ABC”,“custId”=“1”,“baId”=“999”}
AP2 : {“Name” : “ABC”,“custId”=“1”,“baId”=“999”}
AP3 : {“Name” : “ABC”,“custId”=“1”,“baId”=“999”}
AP4 : {“Name” : “ABC”,“custId”=“2”,“baId”=“888”}
AP5 : {“Name” : “ABC”,“custId”=“2”,“baId”=“888”}
AP6 : {“Name” : “ABC”,“custId”=“2”,“baId”=“888”}
AP7 : {“Name” : “ABC”,“custId”=“3”,“baId”=“777”}