My use case is completely different. I have a huge dataset where one of the field is a list (array of jsons). In few of the fields we do have an empty list ([]) and we need to filter them.
If i unnest or flatten it, it will expand to a different dataset and i won’t get the exact count by that way.
I simply need to query the records having that field as empty list.
@Rakesh_Malugu
As i can’t share the exact dataset, i have prepared a sample dataset for sharing purpose.
Please find the below 2 sample json records for this use case:
{“column1”:[],“column2”:[],“column3”:“AB”}
{“column1”:[{“org”:“ABC”,“date”:“Feb 2010”,“type”:“Scholarship”}],“column2”:[],“column3”:“AB”}
So, what i need is to get all the records where column1 is [] (empty list).
Is it something that is not supported, but will be supported in the future? Or is there a different syntax I can use to filter rows based on array comparison?
You cannot use the array directly in the query. However you can unnest the column so that it will split into multiple records with diff array values. Please use the below link for steps.