Skip to content

Commit 7c1e391

Browse files
committed
fixup! [FLINK-35652][table] Shuffle input stream of lookup join based on LOOKUP hint
1 parent f82bde7 commit 7c1e391

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/connector/source/LookupRuntimeProviderContext.java

-5
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ public final class LookupRuntimeProviderContext implements LookupTableSource.Loo
3737

3838
private final boolean preferCustomShuffle;
3939

40-
public LookupRuntimeProviderContext(int[][] lookupKeys) {
41-
this.lookupKeys = lookupKeys;
42-
this.preferCustomShuffle = false;
43-
}
44-
4540
public LookupRuntimeProviderContext(int[][] lookupKeys, boolean preferCustomShuffle) {
4641
this.lookupKeys = lookupKeys;
4742
this.preferCustomShuffle = preferCustomShuffle;

flink-table/flink-table-runtime/src/main/java/org/apache/flink/table/runtime/partitioner/RowDataCustomStreamPartitioner.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ public int selectChannel(SerializationDelegate<StreamRecord<RowData>> record) {
5050
"Could not extract key from " + record.getInstance().getValue(), e);
5151
}
5252
int partition = partitioner.partition(key, numberOfChannels);
53-
Preconditions.checkState(partition < numberOfChannels);
53+
Preconditions.checkState(
54+
partition < numberOfChannels,
55+
"The partition computed by custom partitioner is out of range, please check the logic of custom partitioner.");
5456
return partition;
5557
}
5658

0 commit comments

Comments
 (0)