forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-8360: [C++][Gandiva] Fixes date32 support for date/time functions
Gandiva date/time functions like extractYear only work with millisecond, passing date32 to these functions will get wrong results. This patch adds a new function castDATE_date32 to convert date32 to date64. date/time functions should do a castDATE_date32 first, e.g.: extractYear(castDATE(date32_days)). Signed-off-by: Yuan Zhou <[email protected]> Closes apache#6861 from zhouyuan/wip_gandiva_func_date32 and squashes the following commits: a3019a3 <Yuan Zhou> Fixes date32 support for date/time functions Authored-by: Yuan Zhou <[email protected]> Signed-off-by: Praveen <[email protected]>
- Loading branch information
Showing
5 changed files
with
72 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters