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] Increase precision of seconds and fractions of make_interval #28873

Closed
wants to merge 4 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Jun 19, 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

@MaxGekk
Copy link
Member Author

MaxGekk commented Jun 19, 2020

@dongjoon-hyun @juliuszsompolski Please, review this PR.

@SparkQA
Copy link

SparkQA commented Jun 19, 2020

Test build #124297 has finished for PR 28873 at commit 9dae775.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun
Copy link
Member

Thank you for pinging me, @MaxGekk .

@SparkQA
Copy link

SparkQA commented Jun 20, 2020

Test build #124301 has finished for PR 28873 at commit 3764477.

  • 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. Thank you, @MaxGekk .
Merged to master.

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jun 20, 2020

Could you make a backporting PR to branch-3.0? We need to regenerate some files.

MaxGekk added a commit to MaxGekk/spark that referenced this pull request Jun 20, 2020
…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>
@MaxGekk
Copy link
Member Author

MaxGekk commented Jun 20, 2020

@dongjoon-hyun This is the backport #28878

rajatahujaatinmobi pushed a commit to rajatahujaatinmobi/spark-1 that referenced this pull request Jun 27, 2020
…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>

[SPARK-31957][SQL] Cleanup hive scratch dir for the developer api startWithContext

Comparing to the long-running ThriftServer via start-script, we are more likely to hit the issue https://issues.apache.org/jira/browse/HIVE-10415 / https://issues.apache.org/jira/browse/SPARK-31626 in the developer API `startWithContext`

This PR apply SPARK-31626 to the developer API `startWithContext`

Fix the issue described in  SPARK-31626

Yes, the hive scratch dir will be deleted if cleanup is enabled for calling `startWithContext`

new test

Closes apache#28784 from yaooqinn/SPARK-31957.

Authored-by: Kent Yao <yaooqinn@hotmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>

[SPARK-32039][YARN][WEBUI][Master] Adding Check to not to set UI port (spark.ui.port) property if mentioned explicitly

[SPARK-32039][YARN][WEBUI][Master] Adding Check to not to set UI port (spark.ui.port) property if mentioned explicitly

Merge branch 'ahujarajat261/SPARK-32039-change-yarn-webui-port-range-with-property-latest-spark' of https://github.com/rajatahujaatinmobi/spark-1 into ahujarajat261/SPARK-32039-change-yarn-webui-port-range-with-property-latest-spark
@MaxGekk MaxGekk deleted the make_interval-sec-precision 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
3 participants