docete opened a new pull request #121: [CALCITE-3881][avatical] 
SqlFunctions#addMonths yields incorrect resu…
URL: https://github.com/apache/calcite-avatica/pull/121
 
 
   …lts in some corner case
   
   SqlFunctions#addMonths use DateTimeUtils#ymdToUnixDate to calculate the 
JDN(julian day number). But in some corner cases it yields incorrent results. 
The root cause is: the algorithm of DateTimeUtils#ymdToUnixDate requires 
reasonable month(1 to 12)[1], but SqlFunctions#addMonths may pass in a month 
out of the reasonable range. This PR will fix it.

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

Reply via email to