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

fix bug where 'now' had same value as 'today' for timestamps #1159

Merged
merged 4 commits into from
Nov 19, 2020

Conversation

andygrove
Copy link
Contributor

Signed-off-by: Andy Grove andygrove@nvidia.com

When parsing dates, the special values now and today have the same value, but for timestamps, now should reflect the current time and today should reflect the start of the day.

I also moved more date/time handling from GpuCast to DateUtils.

This closes #1110

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove andygrove added the SQL part of the SQL/Dataframe plugin label Nov 18, 2020
@andygrove andygrove self-assigned this Nov 18, 2020
@andygrove andygrove added this to the Nov 9 - Nov 20 milestone Nov 18, 2020
@andygrove andygrove linked an issue Nov 18, 2020 that may be closed by this pull request
@andygrove
Copy link
Contributor Author

build

@jlowe
Copy link
Member

jlowe commented Nov 18, 2020

test failures seem related

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove
Copy link
Contributor Author

build

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@jlowe
Copy link
Member

jlowe commented Nov 18, 2020

I expect this needs to be upmerged to branch-0.3 in order for CI to pass.

Signed-off-by: Andy Grove <andygrove@nvidia.com>
@andygrove
Copy link
Contributor Author

build

@andygrove andygrove merged commit acebd57 into NVIDIA:branch-0.3 Nov 19, 2020
@andygrove andygrove deleted the now-today branch November 19, 2020 12:21
sperlingxx pushed a commit to sperlingxx/spark-rapids that referenced this pull request Nov 20, 2020
…1159)

* fix bug where 'now' had same value as 'today' for timestamps

Signed-off-by: Andy Grove <andygrove@nvidia.com>

* fix regressions

Signed-off-by: Andy Grove <andygrove@nvidia.com>

* Remove hard-coded UTC timezone when parsing special dates

Signed-off-by: Andy Grove <andygrove@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
…1159)

* fix bug where 'now' had same value as 'today' for timestamps

Signed-off-by: Andy Grove <andygrove@nvidia.com>

* fix regressions

Signed-off-by: Andy Grove <andygrove@nvidia.com>

* Remove hard-coded UTC timezone when parsing special dates

Signed-off-by: Andy Grove <andygrove@nvidia.com>
nartal1 pushed a commit to nartal1/spark-rapids that referenced this pull request Jun 9, 2021
…1159)

* fix bug where 'now' had same value as 'today' for timestamps

Signed-off-by: Andy Grove <andygrove@nvidia.com>

* fix regressions

Signed-off-by: Andy Grove <andygrove@nvidia.com>

* Remove hard-coded UTC timezone when parsing special dates

Signed-off-by: Andy Grove <andygrove@nvidia.com>
tgravescs pushed a commit to tgravescs/spark-rapids that referenced this pull request Nov 30, 2023
* Init version 23.08.0-SNAPSHOT

Signed-off-by: Peixin Li <pxli@nyu.edu>

* include doc update

Signed-off-by: Peixin Li <pxli@nyu.edu>

---------

Signed-off-by: Peixin Li <pxli@nyu.edu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SQL part of the SQL/Dataframe plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Special date "now" has wrong value on GPU
2 participants