gianm opened a new pull request, #18400:
URL: https://github.com/apache/druid/pull/18400

   Previously, CaseToCoalesceRule ignored nullability casts when deciding if 
"x" and "y" in "CASE WHEN x IS NOT NULL THEN y" match and could therefore form 
the basis of a COALESCE. This was too strict, since it considered a cast from 
VARCHAR to VARCHAR(2000), which can happen after applying JSON_VALUE, to be 
relevant. It is not relevant, because it does not affect how we execute the 
query.
   
   This patch updates the logic to ignore nullability casts and also casts that 
change irrelevant properties of the type. ("Irrelevant" being defined as 
"properties that do not affect how the query executes".)


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

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to