This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new f54c77de47 Add a plan version field to QueryRequest Protobuf Message
(#13267)
f54c77de47 is described below
commit f54c77de47545aa982cf9c78514ebee0a348458c
Author: Rajat Venkatesh <[email protected]>
AuthorDate: Fri May 31 11:06:14 2024 +0530
Add a plan version field to QueryRequest Protobuf Message (#13267)
---
pinot-common/src/main/proto/worker.proto | 1 +
.../org/apache/pinot/query/service/dispatch/QueryDispatcher.java | 1 +
.../src/main/java/org/apache/pinot/spi/utils/CommonConstants.java | 7 +++++++
3 files changed, 9 insertions(+)
diff --git a/pinot-common/src/main/proto/worker.proto
b/pinot-common/src/main/proto/worker.proto
index 8ad277c96d..a643c53760 100644
--- a/pinot-common/src/main/proto/worker.proto
+++ b/pinot-common/src/main/proto/worker.proto
@@ -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.
diff --git
a/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
b/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
index ed220f1b84..1fae02e667 100644
---
a/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
+++
b/pinot-query-runtime/src/main/java/org/apache/pinot/query/service/dispatch/QueryDispatcher.java
@@ -150,6 +150,7 @@ public class QueryDispatcher {
_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);
diff --git
a/pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java
b/pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java
index 7b4263f46e..b175d4d0a1 100644
--- a/pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java
+++ b/pinot-spi/src/main/java/org/apache/pinot/spi/utils/CommonConstants.java
@@ -1145,6 +1145,13 @@ public class CommonConstants {
public enum WindowOverFlowMode {
THROW, BREAK
}
+
+ /**
+ * Constants related to plan versions.
+ */
+ public static class PlanVersions {
+ public static final int V1 = 1;
+ }
}
public static class NullValuePlaceHolder {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]