Skip to content

Support for conjunctive and adjunctive filters in TS.MRANGE? #1725

@mjm2312

Description

@mjm2312

I can run the following command on my CLI with no issue:

TS.MRANGE 1676504220000 1676505900000 FILTER id=(id1,id2) type=Type prop=Prop

but when I use ioredis, I get a ReplyError: ERR TSDB: failed parsing labels.

When I pass just the filters id=(id1,id2) it works, and it also works if I pass one id with the other attributes, e.g.: id=id1 type=Type prop=Prop. It doesn't seem like I can pass a combination of AND filters (type, prop) and OR (id1, id2)

A log of command.toWritable looks like:

command.toWritable(), *5 $9 TS.MRANGE $10 1676671745 $10 1676650507 $6 FILTER $129 type=Type id=(id1,id2) prop=Prop 

For what it's worth, I don't encounter this issue with TS.QUERYINDEX -- I can pass the conjunctive id filters and the adjunctive prop, type filters. command.ToWritable for that looks like:

command.toWritable(), *4 $13 TS.QUERYINDEX $9 prop=Prop $102 id=(id1,id2) $26 type=Type 

If this functionality is not currently supported, would I be able to run the query I need with .sendCommand? Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions