benkrug opened a new issue #11065: URL: https://github.com/apache/druid/issues/11065
Reproduced in druid 0.20.0 This will return an integer results, giving the floor of the result, which is expected: select 5/2 (returns 2). Casting the numerator and/or denominator makes no difference. Eg, select (cast (5 as decimal))/(cast (2 as decimal)) or any other variation I can think if, still returns 2. You can only get the decimal part by doing something like select 5.0/2 or a variation like select (1.0*5)/2 -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
