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 2021/08/17 13:30:09 UTC

[GitHub] [druid] EgorEna opened a new issue #11607: How to use lookups in a WHERE expression?

EgorEna opened a new issue #11607:
URL: https://github.com/apache/druid/issues/11607


   Is there a way to use lookups result to filter an output?
   For instance I'm using this query:
    "SELECT DISTINCT device_id, LOOKUP(device_id, 'devices') as date_created FROM "my_table" WHERE LOOKUP(device_id, 'devices') != 1"
    But this query causes runtime error
   Is it working with expessions?


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] humit0 commented on issue #11607: How to use lookups in a WHERE expression?

Posted by GitBox <gi...@apache.org>.
humit0 commented on issue #11607:
URL: https://github.com/apache/druid/issues/11607#issuecomment-900701592


   How about trying above query.
   ```sql
   SELECT DISTINCT device_id, LOOKUP(device_id, 'devices') as date_created
   FROM "my_table"
   WHERE LOOKUP(device_id, 'devices') != '1'
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] humit0 commented on issue #11607: How to use lookups in a WHERE expression?

Posted by GitBox <gi...@apache.org>.
humit0 commented on issue #11607:
URL: https://github.com/apache/druid/issues/11607#issuecomment-900701592


   How about trying above query.
   ```sql
   SELECT DISTINCT device_id, LOOKUP(device_id, 'devices') as date_created
   FROM "my_table"
   WHERE LOOKUP(device_id, 'devices') != '1'
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org