sascha-coenen opened a new issue #9415: SQL: NVL does not work with empty 
strings as documentation states it would
URL: https://github.com/apache/druid/issues/9415
 
 
   ### Affected Version
   0.16.0 and 0.17.0
   
   
   ### Description
   
   NVL does NOT work with empty strings
   
   ```
   SELECT
      NVL('something', 'fallback') AS tst1,   
      NVL(null, 'fallback') AS tst2,
      NVL('', 'fallback') AS tst3
   ```
   this yields
   "something", "fallback", ""
   
   According to the documentation, the third projection should also yield the 
output "fallback"
   > NVL(expr,expr-for-null) | Returns 'expr-for-null' if 'expr' is null (or 
empty string for string type).
   
   
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to