-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-12563: [C++][Gandiva] Add space,add_months and datediff functions for string #10160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-12563: [C++][Gandiva] Add space,add_months and datediff functions for string #10160
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename pull request title in the following format? or See also: |
1bef787 to
8a91fe3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what use of this #ifndef?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: better pass date::year_month_day as argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can set a static days_in_month array
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
Can you add a description comment in the PR about the functions. |
8a91fe3 to
9b9027f
Compare
|
The CI builds are failing. |
c619a1f to
32ee17c
Compare
32ee17c to
11eec9a
Compare
|
Functions were already added |
Space(int n): Return a string of n spaces
add_months(string start_date, int num_months): adds num_months to start_date and returns that date
datediff(string enddate, string startdate): Returns the number of days from startdate to enddate