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 2019/11/06 16:26:56 UTC
[GitHub] [incubator-druid] stelios313 opened a new issue #8833: SQL query
fails in semi join when using NOT IN with subquery
stelios313 opened a new issue #8833: SQL query fails in semi join when using NOT IN with subquery
URL: https://github.com/apache/incubator-druid/issues/8833
### Affected Version
0.16.0
### Description
Executing an SQL query from UI,
```
SELECT dimension, SUM(totals)
FROM datasource
WHERE "__time" BETWEEN TIME_FORMAT(TIMESTAMPADD(DAY, -2,CURRENT_DATE), 'yyyy-MM-dd hh:mm:ss')
AND TIME_FORMAT(TIMESTAMPADD(DAY, -1,CURRENT_DATE), 'yyyy-MM-dd hh:mm:ss')
AND dimension NOT IN (
SELECT dimension from datasource1 WHERE d="example"
)
GROUP BY dimension
```
Gets me:
```
Unknown exception / Cannot build plan for query:
```
followed by the original query.
The exact same query works when i use IN keyword.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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