Skip to content

Conversation

@DileepSrigiri
Copy link
Contributor

@DileepSrigiri DileepSrigiri commented Apr 26, 2021

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

@github-actions
Copy link

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?

ARROW-${JIRA_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@DileepSrigiri DileepSrigiri changed the title [C++][Gandiva] Add space,add_months and datediff functions for string ARROW-12563: [C++][Gandiva] Add space,add_months and datediff functions for string Apr 27, 2021
@github-actions
Copy link

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed it

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@projjal
Copy link
Contributor

projjal commented May 11, 2021

Can you add a description comment in the PR about the functions.

@DileepSrigiri DileepSrigiri force-pushed the Add-space-addmonths-datediff-function branch from 8a91fe3 to 9b9027f Compare May 11, 2021 11:31
@projjal
Copy link
Contributor

projjal commented May 11, 2021

The CI builds are failing.

@DileepSrigiri DileepSrigiri force-pushed the Add-space-addmonths-datediff-function branch 4 times, most recently from c619a1f to 32ee17c Compare May 13, 2021 04:35
@DileepSrigiri DileepSrigiri force-pushed the Add-space-addmonths-datediff-function branch from 32ee17c to 11eec9a Compare May 13, 2021 05:08
@DileepSrigiri
Copy link
Contributor Author

Functions were already added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants