eldenmoon commented on code in PR #39468:
URL: https://github.com/apache/doris/pull/39468#discussion_r1753029766


##########
fe/fe-core/src/main/java/org/apache/doris/qe/PointQueryExecutor.java:
##########
@@ -250,42 +549,77 @@ public void exec() throws Exception {
         // only handles in getNext()
     }
 
-    private RowBatch getNextInternal(Status status, Backend backend) throws 
TException {
-        long timeoutTs = System.currentTimeMillis() + timeoutMs;
-        RowBatch rowBatch = new RowBatch();
-        InternalService.PTabletKeyLookupResponse pResult = null;
-        try {
-            
Preconditions.checkNotNull(shortCircuitQueryContext.serializedDescTable);
-
-            InternalService.PTabletKeyLookupRequest.Builder requestBuilder
-                    = InternalService.PTabletKeyLookupRequest.newBuilder()
-                    .setTabletId(tabletID)
-                    .setDescTbl(shortCircuitQueryContext.serializedDescTable)
-                    
.setOutputExpr(shortCircuitQueryContext.serializedOutputExpr)
-                    
.setQueryOptions(shortCircuitQueryContext.serializedQueryOptions)
-                    .setIsBinaryRow(ConnectContext.get().command == 
MysqlCommand.COM_STMT_EXECUTE);
-            if (snapshotVisibleVersions != null && 
!snapshotVisibleVersions.isEmpty()) {
-                requestBuilder.setVersion(snapshotVisibleVersions.get(0));
+    private List<byte[]> batchGetNext(Status status, Backend backend) throws 
TException {
+        TResultBatch resultBatch = new TResultBatch();
+        List<byte[]> result = Lists.newArrayList();
+        resultBatch.setRows(Lists.newArrayList());
+        InternalService.PTabletBatchKeyLookupRequest.Builder 
pBatchRequestBuilder
+                = InternalService.PTabletBatchKeyLookupRequest.newBuilder();
+        Set<Long> tabletIdsOfBe = backendId2TabletIds.get(backend.getId());
+        
Preconditions.checkNotNull(shortCircuitQueryContext.serializedDescTable);
+        // assemble sub request
+        for (int i = 0; i < keyTupleID2TabletID.size(); ++i) {

Review Comment:
   wrap assemble sub request to a function



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to