Skip to content

Convert DateTime to long along the critical path within coordinator#24673

Merged
shangm2 merged 6 commits intoprestodb:masterfrom
shangm2:convert_datetime
Mar 11, 2025
Merged

Convert DateTime to long along the critical path within coordinator#24673
shangm2 merged 6 commits intoprestodb:masterfrom
shangm2:convert_datetime

Conversation

@shangm2
Copy link
Contributor

@shangm2 shangm2 commented Mar 4, 2025

Description

  1. Similar to Change from DataSize to long to remove unnecessary data creation #24582 , we would like to continue replacing heavy data type with primitive data type.

Motivation and Context

  1. We would like to make coordinator leaner to save cpu time on objection creation and gc.

Impact

Test Plan

  1. passed java verifier test: https://www.internalfb.com/intern/presto/verifier/results/?test_id=213345
  2. passed cpp worker verifier: https://www.internalfb.com/intern/presto/verifier/results/?test_id=213454
  3. Will make sure UI does not break
Screenshot 2025-03-08 at 20 20 00 Screenshot 2025-03-08 at 20 20 19

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

== RELEASE NOTES ==

General Changes
* Improve scheduling by using long instead of DateTime for critical path.

@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from b8b24de to bd5c2f2 Compare March 4, 2025 23:13
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from bd5c2f2 to 13882e2 Compare March 4, 2025 23:27
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from 13882e2 to 933db4d Compare March 5, 2025 00:29
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from 933db4d to 6f14f69 Compare March 5, 2025 00:51
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from 6f14f69 to 97c36e1 Compare March 5, 2025 03:23
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from 97c36e1 to 4fe62d2 Compare March 5, 2025 03:32
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 changed the title Convert DateTime to long for coordinator critical path Convert DateTime to long along the critical path within coordinator Mar 5, 2025
@shangm2 shangm2 force-pushed the convert_datetime branch 2 times, most recently from 6b28a2b to b7e9e0c Compare March 5, 2025 06:04
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2 shangm2 force-pushed the convert_datetime branch from b7e9e0c to f003694 Compare March 5, 2025 20:31
@shangm2 shangm2 force-pushed the convert_datetime branch 7 times, most recently from a374539 to 66335d7 Compare March 10, 2025 19:27
@facebook-github-bot
Copy link
Collaborator

@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@shangm2
Copy link
Contributor Author

shangm2 commented Mar 11, 2025

@ZacBlanco Feel free to take another look. Thanks a lot. I have another pr which needs to be rebased after this one gets merged.

Copy link
Contributor

@ZacBlanco ZacBlanco left a comment

Choose a reason for hiding this comment

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

Thanks @shangm2 for these changes. LGTM

Copy link
Member

@yhwang yhwang left a comment

Choose a reason for hiding this comment

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

LGTM for the UI

Copy link
Contributor

@NikhilCollooru NikhilCollooru left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@amitkdutta amitkdutta left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @shangm2

@shangm2 shangm2 merged commit 6c36be4 into prestodb:master Mar 11, 2025
100 of 101 checks passed
unidevel pushed a commit to unix280/presto that referenced this pull request Mar 12, 2025
…tor (prestodb#24673)

* Change DateTime for APIs

* Change DateTime for tests

* Change DateTime for cpp workers

* Change DateTime for presto-spark-base

* Change DateTime for presto-ui

* Change DateTime for presto-main
@prestodb-ci prestodb-ci mentioned this pull request Mar 28, 2025
30 tasks
pradeepvaka pushed a commit to pradeepvaka/presto that referenced this pull request Apr 11, 2025
…tor (prestodb#24673)

* Change DateTime for APIs

* Change DateTime for tests

* Change DateTime for cpp workers

* Change DateTime for presto-spark-base

* Change DateTime for presto-ui

* Change DateTime for presto-main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

from:Meta PR from Meta

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants