gianm commented on issue #7281: bump calcite version to 1.18.0 in druid-sql
URL: https://github.com/apache/incubator-druid/pull/7281#issuecomment-485152834
 
 
   > @gianm How about writing a new rule such as DruidReduceEqualNullRule which 
makes a=null as a='' when nessesary.. thanks
   
   That seems reasonable if it gets us the behavior we want. I'm not sure if we 
will be able to get 100% there, though, because consider operators like 
`COALESCE(x, y)`. In the default mode, we want this to return `y` if `x` is an 
empty string. But in SQL compliant mode, we want this to return `x` if `x` is 
an empty string (and return `y` if `x` is null). Right now, I think this works 
-- see "testCoalesceColumns" in CalciteQueryTest -- but it might be "by 
accident".

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