-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor(exchange): Rename taskId to remoteTaskId #11424
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for meta-velox canceled.
|
bc69480
to
9f312a8
Compare
@Yuhta Could you please take a look, thanks. |
f89262a
to
be29d58
Compare
@kevinwilfong has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@lingbin it looks like Presto is currently using the field taskId_ here https://github.com/prestodb/presto/blob/942cbbc7fb79e0ad04a1a164a6960eae91219a02/presto-native-execution/presto_cpp/main/PrestoExchangeSource.h#L146 Is there a way to do this in a backwards compatible way so that Presto isn't broken? E.g. since taskId_ is constant you could do this in 3 steps:
|
@lingbin Gentle reminder. |
Currently 'taskId' in an Exchange related class has two meanings, for example `ExchangeClient::taskId_` means local task (consumer), `ExchangeSource::taskId_` indicates a remote task (producer). This can cause a bit of confusion. And, in some places current codebase already use 'remoteTaskId, such as `ExchangeClient::remoteTaskIds_`. This patch renames the remaining 'task ID's representing the remote to 'remoteTaskId' to make it more intuitive. No functional changes.
be29d58
to
429a844
Compare
@kevinwilfong Thanks very much. I have changed the code according to your suggestions. And I will continue to follow up and eventually remove the temporary 'taskId_'. |
@kevinwilfong Could you please help take a look again? cc @kgpai |
Currently 'taskId' in an Exchange related class has two meanings, for
example
ExchangeClient::taskId_
means local task (consumer),ExchangeSource::taskId_
indicates a remote task (producer). This cancause a bit of confusion.
And, in some places current codebase already uses 'remoteTaskId, such as
ExchangeClient::remoteTaskIds_
. This patch renames the remaining'task ID's representing the remote to 'remoteTaskId' to make it more
intuitive.
No functional changes.