-
Notifications
You must be signed in to change notification settings - Fork 41
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
[Issue #736] support streaming broadcast join #760
base: master
Are you sure you want to change the base?
Conversation
} | ||
else if (joinAlgo == JoinAlgorithm.BROADCAST_CHAIN) | ||
{ | ||
// joinOutputs[i] = InvokerFactory.Instance() |
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.
Why not support broadcast chain join?
CompletableFuture<CompletableFuture<? extends Output>[]> smallChildFuture = null; | ||
if (smallChild != null) | ||
{ | ||
throw new InterruptedException(); |
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.
Why not execute the child operator?
CompletableFuture<CompletableFuture<? extends Output>[]> largeChildFuture = null; | ||
if (largeChild != null) | ||
{ | ||
throw new InterruptedException(); |
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.
Why not execute the child operator?
if (smallChildFuture != null) | ||
{ | ||
CompletableFuture<? extends Output>[] smallChildOutputs = smallChildFuture.join(); | ||
waitForCompletion(smallChildOutputs); |
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.
For streaming execution, it should not wait for the child operator to complete.
if (largeChildFuture != null) | ||
{ | ||
CompletableFuture<? extends Output>[] largeChildOutputs = largeChildFuture.join(); | ||
waitForCompletion(largeChildOutputs, LargeSideCompletionRatio); |
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.
For streaming execution, it should not wait for the child operator to complete.
@@ -0,0 +1,56 @@ | |||
/* | |||
* Copyright 2023 PixelsDB. |
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.
@@ -0,0 +1,31 @@ | |||
package io.pixelsdb.pixels.invoker.vhive; |
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.
Add license header.
@Override | ||
public CompletableFuture<Output> invoke(Input input) | ||
{ | ||
// log.info(String.format("invoke BroadcastJoinStreamInput: %s", JSON.toJSONString(input, SerializerFeature.PrettyFormat, SerializerFeature.DisableCircularReferenceDetect))); |
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.
Remove this log if you do not need it.
String coordinatorIp = WorkerCommon.getCoordinatorIp(); | ||
int coordinatorPort = WorkerCommon.getCoordinatorPort(); | ||
CFWorkerInfo workerInfo = new CFWorkerInfo(ip, port, transId, stageId, "broadcast_join", Collections.emptyList()); | ||
workerCoordinatorService = new WorkerCoordinateService(coordinatorIp, coordinatorPort); |
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.
Is workerCoordiantorService used anywhere?
05c5e81
to
598bf72
Compare
598bf72
to
119fe31
Compare
e0245f6
to
326949d
Compare
69805f9
to
cf79158
Compare
Part of #736.