Skip to content

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Sep 17, 2019

What changes were proposed in this pull request?

Added new benchmarks for make_date() and make_timestamp() to detect performance issues, and figure out functions speed on foldable arguments.

  • make_date() is benchmarked on fully foldable arguments.
  • make_timestamp() is benchmarked on corner case 60.0, foldable time fields and foldable date.

Why are the changes needed?

To find out inputs where make_date() and make_timestamp() have performance problems. This should be useful in the future optimizations of the functions and users apps.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By running the benchmark and manually checking generated dates/timestamps.

@SparkQA
Copy link

SparkQA commented Sep 17, 2019

Test build #110758 has finished for PR 25813 at commit cc8061f.

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

@dongjoon-hyun
Copy link
Member

Apache JIRA is under maintenance now. I'll update the JIRA later~

@MaxGekk MaxGekk deleted the make_datetime-benchmark branch October 5, 2019 19:17
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.

4 participants