You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@paimon.apache.org by lz...@apache.org on 2024/06/26 02:02:43 UTC
(paimon) branch master updated: [test] Correct test in FileStoreLookupFunctionTest
This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new d5bae56c8 [test] Correct test in FileStoreLookupFunctionTest
d5bae56c8 is described below
commit d5bae56c819101e554c9ce7aa0362829287a626b
Author: Jingsong <ji...@gmail.com>
AuthorDate: Wed Jun 26 10:02:30 2024 +0800
[test] Correct test in FileStoreLookupFunctionTest
---
.../paimon/flink/lookup/FileStoreLookupFunctionTest.java | 13 ++++---------
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/lookup/FileStoreLookupFunctionTest.java b/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/lookup/FileStoreLookupFunctionTest.java
index 14b0ba920..f8c8adcb2 100644
--- a/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/lookup/FileStoreLookupFunctionTest.java
+++ b/paimon-flink/paimon-flink-common/src/test/java/org/apache/paimon/flink/lookup/FileStoreLookupFunctionTest.java
@@ -82,12 +82,7 @@ public class FileStoreLookupFunctionTest {
}
private void createLookupFunction(boolean refreshAsync) throws Exception {
- createLookupFunction(true, false, refreshAsync);
- }
-
- private void createLookupFunction(
- boolean isPartition, boolean joinEqualPk, boolean refreshAsync) throws Exception {
- createLookupFunction(isPartition, joinEqualPk, false, refreshAsync);
+ createLookupFunction(true, false, false, refreshAsync);
}
private void createLookupFunction(
@@ -143,7 +138,7 @@ public class FileStoreLookupFunctionTest {
@ParameterizedTest
@ValueSource(booleans = {false, true})
public void testDefaultLocalPartial(boolean refreshAsync) throws Exception {
- createLookupFunction(false, true, refreshAsync);
+ createLookupFunction(false, true, false, refreshAsync);
assertThat(lookupFunction.lookupTable()).isInstanceOf(PrimaryKeyPartialLookupTable.class);
QueryExecutor queryExecutor =
((PrimaryKeyPartialLookupTable) lookupFunction.lookupTable()).queryExecutor();
@@ -153,7 +148,7 @@ public class FileStoreLookupFunctionTest {
@ParameterizedTest
@ValueSource(booleans = {false, true})
public void testDefaultRemotePartial(boolean refreshAsync) throws Exception {
- createLookupFunction(false, true, refreshAsync);
+ createLookupFunction(false, true, false, refreshAsync);
ServiceManager serviceManager = new ServiceManager(fileIO, tablePath);
serviceManager.resetService(
PRIMARY_KEY_LOOKUP, new InetSocketAddress[] {new InetSocketAddress(1)});
@@ -201,7 +196,7 @@ public class FileStoreLookupFunctionTest {
@Test
public void testLookupDynamicPartition() throws Exception {
- createLookupFunction(true, false, true);
+ createLookupFunction(true, false, true, false);
commit(writeCommit(1));
lookupFunction.lookup(new FlinkRowData(GenericRow.of(1, 1, 10L)));
assertThat(