This is an automated email from the ASF dual-hosted git repository.
mrhhsg pushed a commit to branch adaptive_batch_size
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/adaptive_batch_size by this
push:
new 7e6928c888e [fix](maxcompute) fix pr #62615 build error . (#62621)
7e6928c888e is described below
commit 7e6928c888ef92f22b7395c043c16af4fc15edd5
Author: daidai <[email protected]>
AuthorDate: Mon Apr 20 15:05:44 2026 +0800
[fix](maxcompute) fix pr #62615 build error . (#62621)
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
.../doris/service/FrontendServiceImplTest.java | 49 ----------------------
1 file changed, 49 deletions(-)
diff --git
a/fe/fe-core/src/test/java/org/apache/doris/service/FrontendServiceImplTest.java
b/fe/fe-core/src/test/java/org/apache/doris/service/FrontendServiceImplTest.java
index 0e136ace69a..00903892b23 100644
---
a/fe/fe-core/src/test/java/org/apache/doris/service/FrontendServiceImplTest.java
+++
b/fe/fe-core/src/test/java/org/apache/doris/service/FrontendServiceImplTest.java
@@ -24,8 +24,6 @@ import org.apache.doris.catalog.Partition;
import org.apache.doris.common.Config;
import org.apache.doris.common.FeConstants;
import org.apache.doris.common.util.DatasourcePrintableMap;
-import org.apache.doris.datasource.maxcompute.MCTransaction;
-import org.apache.doris.datasource.maxcompute.MaxComputeExternalCatalog;
import org.apache.doris.nereids.parser.NereidsParser;
import org.apache.doris.nereids.trees.plans.commands.CreateDatabaseCommand;
import org.apache.doris.nereids.trees.plans.commands.CreateTableCommand;
@@ -40,8 +38,6 @@ import org.apache.doris.thrift.TFetchSchemaTableDataRequest;
import org.apache.doris.thrift.TFetchSchemaTableDataResult;
import org.apache.doris.thrift.TGetDbsParams;
import org.apache.doris.thrift.TGetDbsResult;
-import org.apache.doris.thrift.TMaxComputeBlockIdRequest;
-import org.apache.doris.thrift.TMaxComputeBlockIdResult;
import org.apache.doris.thrift.TMetadataTableRequestParams;
import org.apache.doris.thrift.TMetadataType;
import org.apache.doris.thrift.TNullableStringLiteral;
@@ -60,7 +56,6 @@ import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
-import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
@@ -110,22 +105,6 @@ public class FrontendServiceImplTest {
}
}
- private static void executeCommand(String sql) throws Exception {
- NereidsParser nereidsParser = new NereidsParser();
- LogicalPlan parsed = nereidsParser.parseSingle(sql);
- StmtExecutor stmtExecutor = new StmtExecutor(connectContext, sql);
- if (parsed instanceof Command) {
- ((Command) parsed).run(connectContext, stmtExecutor);
- return;
- }
- throw new IllegalArgumentException("Unsupported command in test: " +
sql);
- }
-
- private static void setPrivateField(Object target, String fieldName,
Object value) throws Exception {
- Field field = target.getClass().getDeclaredField(fieldName);
- field.setAccessible(true);
- field.set(target, value);
- }
@Test
public void testCreatePartitionRange() throws Exception {
@@ -272,34 +251,6 @@ public class FrontendServiceImplTest {
System.out.println(result);
}
- @Test
- public void testGetMaxComputeBlockIdRange() throws Exception {
- FrontendServiceImpl impl = new FrontendServiceImpl(exeEnv);
- long txnId = Env.getCurrentEnv().getNextId();
- MCTransaction transaction = new
MCTransaction(Mockito.mock(MaxComputeExternalCatalog.class));
- setPrivateField(transaction, "writeSessionId", "session-1");
-
Env.getCurrentEnv().getGlobalExternalTransactionInfoMgr().putTxnById(txnId,
transaction);
-
- try {
- TMaxComputeBlockIdRequest request = new
TMaxComputeBlockIdRequest();
- request.setTxnId(txnId);
- request.setWriteSessionId("session-1");
- request.setLength(1);
-
- TMaxComputeBlockIdResult first =
impl.getMaxComputeBlockIdRange(request);
- Assert.assertEquals(TStatusCode.OK,
first.getStatus().getStatusCode());
- Assert.assertEquals(0L, first.getStart());
- Assert.assertEquals(1L, first.getLength());
-
- TMaxComputeBlockIdResult second =
impl.getMaxComputeBlockIdRange(request);
- Assert.assertEquals(TStatusCode.OK,
second.getStatus().getStatusCode());
- Assert.assertEquals(1L, second.getStart());
- Assert.assertEquals(1L, second.getLength());
- } finally {
-
Env.getCurrentEnv().getGlobalExternalTransactionInfoMgr().removeTxnById(txnId);
- }
- }
-
@Test
public void testFetchAuthenticationIntegrationsSchemaTableData() throws
Exception {
String integrationName = "test_authentication_integration";
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]