João Pedro Antunes Ferreira created ARROW-13281:
---------------------------------------------------
Summary: [C++][Gandiva] Error on timestampDiffMonth function
behavior for negative diff values
Key: ARROW-13281
URL: https://issues.apache.org/jira/browse/ARROW-13281
Project: Apache Arrow
Issue Type: Bug
Components: C++ - Gandiva
Reporter: João Pedro Antunes Ferreira
Assignee: João Pedro Antunes Ferreira
The TIMESTAMPDIFF function appears to return incorrect values when a negative
number should be returned.
Example:
- For the inputs TIMESTAMPDIFFMONTH("2019-06-30", "2019-03-31") it should
return **-3**, but it returns **-1**
- For the inputs TIMESTAMPDIFFMONTH("2019-06-30", "2019-05-31") it should
return **-1**, but it returns **1**
--
This message was sent by Atlassian Jira
(v8.3.4#803005)