Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.38.0
Description
Currently Druid Adapter would transform in / not in to In filter which is not correct, need to fix it.
note:
- Currently DruidJsonFilter##toInKindDruidFilter had filter only handle for two kind SqlKind.DRUID_IN and SqlKind.DRUID_NOT_IN
- DruidJsonFilter##toInKindDruidFilter check for SqlKind.IN not SqlKind.DRUID_NOT_IN , would transform all to JsonInFilter include SqlKind.DRUID_NOT_IN , this is not fitable
ut: DruidQueryFilterTest##testNotInFilter
The newly added test fails as follows without the fix:
Expected: with toString() "{\"type\":\"not\",\"field\":{\"type\":\"in\",\"dimension\":\"dimensionName\",\"values\":[\"1\",\"5\",\"value1\"]}}" but: toString() was "{\"type\":\"in\",\"dimension\":\"dimensionName\",\"values\":[\"1\",\"5\",\"value1\"]}"
Attachments
Issue Links
- links to