Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pinot-common/src/main/proto/worker.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ message CancelResponse {
message QueryRequest {
repeated StagePlan stagePlan = 1;
bytes metadata = 2; // Serialized Properties
int32 version = 3;
}

// QueryResponse is the dispatched response from worker, it doesn't contain actual data, only dispatch status.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ void submit(long requestId, DispatchableSubPlan dispatchableSubPlan, long timeou
_executorService.submit(() -> {
try {
Worker.QueryRequest.Builder requestBuilder = Worker.QueryRequest.newBuilder();
requestBuilder.setVersion(CommonConstants.MultiStageQueryRunner.PlanVersions.V1);
for (int i = 0; i < numStages; i++) {
int stageId = i + 1;
DispatchablePlanFragment stagePlan = stagePlans.get(stageId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,13 @@ public enum JoinOverFlowMode {
public enum WindowOverFlowMode {
THROW, BREAK
}

/**
* Constants related to plan versions.
*/
public static class PlanVersions {
public static final int V1 = 1;
}
}

public static class NullValuePlaceHolder {
Expand Down