-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Change from DataSize to long to remove unnecessary data creation #24582
Conversation
287711e
to
c35f437
Compare
Thanks for the release note! Nit suggestion rephrasing to consider, to follow the Order of changes in the Release Notes Guidelines:
|
a6c23a2
to
4495d51
Compare
I have a concern that this will break compatibility with some of the existing tooling around Presto. A good number of JSON blobs get exposed to downstream tools through the query event listener framework. Is there any plan to maintain backwards compatibility or help migrate tools that will break due to this change? |
Hey @ZacBlanco we certainly dont want to break anything. Could you point me to those downstream tools so I can talk to the team and come up with a plan? Thanks a lot. |
At first I was concerned about the event listener, however it seems to have a separate API for the objects that are returned. So that should be good. We do have a few closed-source tools which are used internally to grab information from the coordinator REST API. I think as long as we don't affect the output format of the JSONs at |
presto-main/src/main/java/com/facebook/presto/execution/QueryStats.java
Outdated
Show resolved
Hide resolved
4495d51
to
ccd773e
Compare
14e3fa2
to
d35269b
Compare
31729f8
to
974fbc6
Compare
Sorry I have been preoccupied with some other things. I will try to review again later today or tomorrow |
2117fca
to
6ef3088
Compare
@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
3952248
to
a324a2e
Compare
a324a2e
to
5968a34
Compare
There was a problem hiding this 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 part
@shangm2 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for all the updates @shangm2 . If we do end up changing public endpoints (see my comment), I would request that we also make sure to update the existing openapi spec under the presto-openapi
module.
I think this change should be a topic to bring up at the upcoming TSC to see how folks feel about it and whether they are OK breaking the REST API compatibility. I will defer to the community to make the final decision, but I would err on the side that we should not break the API. If you can present some compelling performance results at the TSC meeting, it might also help convince the community that this change is worth breaking API compatibility.
How does that sound to you?
this.outputPositions = outputPositions; | ||
|
||
this.physicalWrittenDataSize = requireNonNull(physicalWrittenDataSize, "writtenDataSize is null"); | ||
checkArgument(physicalWrittenDataSizeInBytes >= 0, "writtenDataSizeInBytes is negative"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it would be worth adding a method in presto-common or similar called checkDataSize
with the following implementation:
public long checkDataSize(long size, String name) {
checkArgument(size >= 0, "%s is negative", name);
return size;
}
Merging this, since we got a go ahead regarding the UI changes. |
Shang made the suggested changes and removed changes from spi .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
sorry ! I missed @ZacBlanco latest comment. We will address the comments in the next PR |
We agree, we will make sure to bring this up in the next TSC. Thanks for the review. We will also discuss internally regarding this change. |
Description
Motivation and Context
Impact
Test Plan
Contributor checklist