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

   When writing RexLiterals into Druid expressions, we now write non-integer 
numeric literals in such a way that ensures they are parsed as doubles on the 
other end.
   
   Fixes behavior where, in cases where literals are embedded in expressions, 
casts like `CAST(3 AS DOUBLE)` seemingly get "lost". I noticed this when doing 
`STRING_FORMAT('%.2f', CAST(3 AS DOUBLE))`. The expression was generated as 
`format('%.2f', 3)`, which led to an error since `f` expects floating point 
input. I bet other expressions could have had odd behavior too.


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