Open rumyantseva opened 1 year ago
@garrensmith let's think about this use case as well for filtering on array fields.
Nice. This should be possible with the secondary indexes. We have to change the keybuilder and filter to support nested queries. The part I'm uncertain around is the foo.Position1.bar.Position2
I think that part would have to be done in memory.
Add support for lambda style filtering. There are two examples we can refer to:
duckdb nested functions: https://duckdb.org/docs/sql/functions/nested - list_filter jsonpath - https://goessner.net/articles/JsonPath/
Is your feature request related to a problem? Please describe.
To support more user queries, we need the ability to use "dot notation" in the filter when searching for values in arrays.
Examples:
foo.0.bar.1
- to address the exact array value with the given indexesfoo.bar
- to address any array element infoo.*.bar.*
arraysUsage example:
Additional context
To support more query pushdown cases in FerretDB.