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 2020/10/30 03:59:46 UTC

[GitHub] [druid] shashanksinghal commented on issue #10525: Incorrect results (including nulls) when querying string column with col <> '' and col is not null

shashanksinghal commented on issue #10525:
URL: https://github.com/apache/druid/issues/10525#issuecomment-719157152


   Thanks @Gahen, another possible solution I found is:
   instead of 
   `select * from receiver where some_string_field is not null and some_string_field != ''`
   send
   `select * from receiver where NVL(some_string_field, 'nullVal') != 'nullVal' and some_string_field != ''`
   
   NOTE that NVL solves the issue but COALESCE does not.


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



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