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

[SPARK-32021][SQL][3.0] Increase precision of seconds and fractions of make_interval #28878

Closed

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Jun 20, 2020

What changes were proposed in this pull request?

Change precision of seconds and its fraction from 8 to 18 to be able to construct intervals of max allowed microseconds value (long).

Why are the changes needed?

To improve UX of Spark SQL.

Does this PR introduce any user-facing change?

Yes

How was this patch tested?

  • Add tests to IntervalExpressionsSuite
  • Add an example to the MakeInterval expression
  • Add tests to interval.sql

Authored-by: Max Gekk max.gekk@gmail.com
Signed-off-by: Dongjoon Hyun dongjoon@apache.org
(cherry picked from commit 66ba356)

…ke_interval`

Change precision of seconds and its fraction from 8 to 18 to be able to construct intervals of max allowed microseconds value (long).

To improve UX of Spark SQL.

Yes

- Add tests to IntervalExpressionsSuite
- Add an example to the `MakeInterval` expression
- Add tests to `interval.sql`

Closes apache#28873 from MaxGekk/make_interval-sec-precision.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@SparkQA
Copy link

SparkQA commented Jun 20, 2020

Test build #124319 has finished for PR 28878 at commit 8ddc76b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to branch-3.0.

dongjoon-hyun pushed a commit that referenced this pull request Jun 20, 2020
…f `make_interval`

### What changes were proposed in this pull request?
Change precision of seconds and its fraction from 8 to 18 to be able to construct intervals of max allowed microseconds value (long).

### Why are the changes needed?
To improve UX of Spark SQL.

### Does this PR introduce _any_ user-facing change?
Yes

### How was this patch tested?
- Add tests to IntervalExpressionsSuite
- Add an example to the `MakeInterval` expression
- Add tests to `interval.sql`

Authored-by: Max Gekk max.gekkgmail.com
Signed-off-by: Dongjoon Hyun dongjoonapache.org
(cherry picked from commit 66ba356)

Closes #28878 from MaxGekk/make_interval-sec-precision-3.0.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun
Copy link
Member

Thanks!

@MaxGekk MaxGekk deleted the make_interval-sec-precision-3.0 branch December 11, 2020 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants