ECQL IN filter should accept expression for LHS

Description

ECQL provides an IN filter as a short hand for comparing an attribute to several different values attribute IN ('test1', 'test') is equivalent to attribute = 'test1' OR attribute = 'test2'. This doesn't work for anything but attributes however. Although this is reasonable given the implementation, it does represent a 'gotcha' for anyone who is merely using ECQL without caring about internal details.

This could probably be resolved with a variadic comparison function to compare one value to several others so that ECQL some_function() IN ('test1', 'test2') could be turned into a filter equivalent to the CQL is_one_of(some_function(), 'test1', 'test2')

Environment

None

Assignee

Unassigned

Reporter

Kevin Smith [Administrator]

Triage

None

Components

Affects versions

Priority

Medium
Configure