Skip to content
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-12205: [C++][Gandiva] Implement TO_TIME([number] seconds) and TO_TIMESTAMP([number] seconds) function #9890

Closed

Conversation

jpedroantunes
Copy link
Contributor

@jpedroantunes jpedroantunes commented Apr 5, 2021

ImpleImplement TO_TIME([number] seconds) and TO_TIMESTAMP([number] seconds) function

@github-actions
Copy link

github-actions bot commented Apr 5, 2021

cpp/src/gandiva/function_registry_datetime.cc Outdated Show resolved Hide resolved
cpp/src/gandiva/function_registry_common.h Outdated Show resolved Hide resolved
@jpedroantunes jpedroantunes changed the title ARROW-12205: [C++][Gandiva] Implement TO_TIMESTAMP([number] seconds) function ARROW-12205: [C++][Gandiva] Implement TO_TIME([number] millis) and TO_TIMESTAMP([number] seconds) function Apr 8, 2021
@jpedroantunes jpedroantunes changed the title ARROW-12205: [C++][Gandiva] Implement TO_TIME([number] millis) and TO_TIMESTAMP([number] seconds) function ARROW-12205: [C++][Gandiva] Implement TO_TIME([number] seconds) and TO_TIMESTAMP([number] seconds) function Apr 12, 2021
@jpedroantunes jpedroantunes force-pushed the feature/to-timestamp-function branch 4 times, most recently from 521ad94 to d0934f1 Compare April 19, 2021 10:39
@jpedroantunes jpedroantunes force-pushed the feature/to-timestamp-function branch 6 times, most recently from 8748bec to 636b283 Compare April 25, 2021 14:09
@jpedroantunes jpedroantunes force-pushed the feature/to-timestamp-function branch 2 times, most recently from fcc1321 to 8982a6f Compare April 29, 2021 11:57
Copy link
Contributor

@projjal projjal left a comment

Choose a reason for hiding this comment

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

Can you look at the test failures in the build.

cpp/src/gandiva/precompiled/time.cc Outdated Show resolved Hide resolved
cpp/src/gandiva/precompiled/time_test.cc Outdated Show resolved Hide resolved
@jpedroantunes jpedroantunes force-pushed the feature/to-timestamp-function branch from cf9bd3d to 31fdbd2 Compare May 17, 2021 11:21
michalursa pushed a commit to michalursa/arrow that referenced this pull request Jun 13, 2021
…O_TIMESTAMP([number] seconds) function

ImpleImplement TO_TIME([number] seconds) and TO_TIMESTAMP([number] seconds) function

Closes apache#9890 from jpedroantunes/feature/to-timestamp-function and squashes the following commits:

315a6db <Anthony Louis> Change return type of to_time functions
31fdbd2 <João Pedro> Correct values used on to time test
ec3919f <João Pedro Antunes Ferreira> Correct comments on to_time test
7421142 <João Pedro> Apply corrections on to time tests to try to  handle floating points
0df0a3b <João Pedro> Define input timestamp comments
805a2d9 <João Pedro> Apply corrections on to time tests to handle floating points
93f8ec5 <João Pedro> Correct dev lint options
4999fd5 <João Pedro> Correct dev lint options
f117af6 <João Pedro> Add necessary static casts on tests
a6a396e <João Pedro> Add case tests for to_timestamp with fractional parts
de64aae <João Pedro> Add case tests for to_timestamp with fractional parts
de93dc2 <João Pedro> Fix to time implementation to get the time of the day
b44aea0 <João Pedro> Fix local lint errors
2013d44 <João Pedro> Fix to time function to consider seconds as input
3af0718 <João Pedro> Change to time implementation to handle secs and not millis
b5c6ca1 <João Pedro> Fix lint problems on time.cc file
f904a3b <João Pedro> Fix tests for timestamp and time to not need casting
f090220 <João Pedro> Add tests for to timestamp function
bf81503 <João Pedro> Add to_time definition for numeric types
d9119ee <João Pedro> Change definition of to_timestamp function to work for numeric types
33230ca <João Pedro> Remove unused function on time.cc
b41c3c2 <João Pedro> Add function registry for to_timestamp method
b5a80ed <João Pedro> Add unit tests for to_timestamp method
d26179e <João Pedro> Add base declaration for to_timestamp for numeric in gandiva types.h
d19f3f6 <João Pedro> Add base implementation for to_timestamp for numeric in gandiva

Lead-authored-by: João Pedro <joaop@simbioseventures.com>
Co-authored-by: João Pedro Antunes Ferreira <42006402+jpedroantunes@users.noreply.github.com>
Co-authored-by: Anthony Louis <anthony@simbioseventures.com>
Signed-off-by: Praveen <praveen@dremio.com>
jvictorhuguenin pushed a commit to s1mbi0se/arrow that referenced this pull request Sep 21, 2021
…O_TIMESTAMP([number] seconds) function

ImpleImplement TO_TIME([number] seconds) and TO_TIMESTAMP([number] seconds) function

Closes apache#9890 from jpedroantunes/feature/to-timestamp-function and squashes the following commits:

315a6db <Anthony Louis> Change return type of to_time functions
31fdbd2 <João Pedro> Correct values used on to time test
ec3919f <João Pedro Antunes Ferreira> Correct comments on to_time test
7421142 <João Pedro> Apply corrections on to time tests to try to  handle floating points
0df0a3b <João Pedro> Define input timestamp comments
805a2d9 <João Pedro> Apply corrections on to time tests to handle floating points
93f8ec5 <João Pedro> Correct dev lint options
4999fd5 <João Pedro> Correct dev lint options
f117af6 <João Pedro> Add necessary static casts on tests
a6a396e <João Pedro> Add case tests for to_timestamp with fractional parts
de64aae <João Pedro> Add case tests for to_timestamp with fractional parts
de93dc2 <João Pedro> Fix to time implementation to get the time of the day
b44aea0 <João Pedro> Fix local lint errors
2013d44 <João Pedro> Fix to time function to consider seconds as input
3af0718 <João Pedro> Change to time implementation to handle secs and not millis
b5c6ca1 <João Pedro> Fix lint problems on time.cc file
f904a3b <João Pedro> Fix tests for timestamp and time to not need casting
f090220 <João Pedro> Add tests for to timestamp function
bf81503 <João Pedro> Add to_time definition for numeric types
d9119ee <João Pedro> Change definition of to_timestamp function to work for numeric types
33230ca <João Pedro> Remove unused function on time.cc
b41c3c2 <João Pedro> Add function registry for to_timestamp method
b5a80ed <João Pedro> Add unit tests for to_timestamp method
d26179e <João Pedro> Add base declaration for to_timestamp for numeric in gandiva types.h
d19f3f6 <João Pedro> Add base implementation for to_timestamp for numeric in gandiva

Lead-authored-by: João Pedro <joaop@simbioseventures.com>
Co-authored-by: João Pedro Antunes Ferreira <42006402+jpedroantunes@users.noreply.github.com>
Co-authored-by: Anthony Louis <anthony@simbioseventures.com>
Signed-off-by: Praveen <praveen@dremio.com>
(cherry picked from commit f1a7b0d)
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.

3 participants