You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/08/03 11:36:23 UTC
[GitHub] robertervin opened a new issue #6101: Druid InDimFilter Fails on
Empty Values
robertervin opened a new issue #6101: Druid InDimFilter Fails on Empty Values
URL: https://github.com/apache/incubator-druid/issues/6101
### Use Case:
We dynamically build Druid queries by allowing the user to filter the UI. Sometimes this results in the user filtering out all options (sometimes unintentionally), and is something we want to allow for.
### Problem
In https://github.com/apache/incubator-druid/blob/04ea3c9f8c1f5ea34b023217bd709509ace4d30d/processing/src/main/java/io/druid/query/filter/InDimFilter.java#L78
Druid fails when filtering on empty values, though I see no reason why it should since the result should just be empty. e.g. in pseudocode,
```
mydatasource.filter(mycolumn in []) = []
```
Is there a better reason for this, or can I submit a PR to remove that restriction?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org