-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Improvement][tez] Optimize the method of obtain the vertex id. #986
Comments
It is great, if can obtain vertex id throuth:
The only one it modify lots of file, but it is ok. but when could not get vertexid, eg:
could we throw exception, then we could know something wrong, instead get -1 and wrong result. |
assert is used to throw exception. You can see the below code.
And in fact, the vertex id must exists, so in general way, we will never throw exception. |
Greate! @zhengchenyu zhengchenyu |
That's a good idea, as only computeShuffleId use vertex id.
|
#990) ### What changes were proposed in this pull request? Optimize the method of obtain the vertex id. ### Why are the changes needed? For now, vertex id is extract from vertex name. This way only support the vertex name like "Map 0", "Reduce 1", generally generated from hive. For tez examples, the vertex name is arbitrary, so we can't get the vertex id. So we need a new way to get vertex id. Fix: #986 ### How was this patch tested? integration test, unit test, test in yarn cluster, test in tez local mode.
Code of Conduct
Search before asking
What would you like to be improved?
For now, vertex id is extract from vertex name. This way only support the vertex name like "Map 0", "Reduce 1", generally generated from hive.
For tez examples, the vertex name is arbitrary, so we can't get the vertex id. So we need a new way to get vertex id.
How should we improve?
No response
Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: