-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Flink]fix readPartitionInfo on UpdateCommit (#458)
* [Flink]fix readPartitionInfo on UpdateCommit Signed-off-by: zenghua <[email protected]> * fix testLakeSoulTableSinkDeleteWithParallelismInBatch expected result Signed-off-by: zenghua <[email protected]> * add todo memo Signed-off-by: zenghua <[email protected]> --------- Signed-off-by: zenghua <[email protected]> Co-authored-by: zenghua <[email protected]>
- Loading branch information
Showing
13 changed files
with
270 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...rc/main/java/org/apache/flink/lakesoul/table/LakeSoulRowLevelModificationScanContext.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package org.apache.flink.lakesoul.table; | ||
|
||
import com.dmetasoul.lakesoul.meta.entity.JniWrapper; | ||
import com.dmetasoul.lakesoul.meta.entity.PartitionInfo; | ||
import com.google.protobuf.InvalidProtocolBufferException; | ||
import org.apache.flink.table.connector.RowLevelModificationScanContext; | ||
|
||
import java.nio.charset.StandardCharsets; | ||
import java.util.Base64; | ||
import java.util.List; | ||
|
||
public class LakeSoulRowLevelModificationScanContext implements RowLevelModificationScanContext { | ||
|
||
private final JniWrapper sourcePartitionInfo; | ||
|
||
public LakeSoulRowLevelModificationScanContext(List<PartitionInfo> listPartitionInfo) { | ||
sourcePartitionInfo = JniWrapper.newBuilder().addAllPartitionInfo(listPartitionInfo).build(); | ||
} | ||
|
||
public JniWrapper getSourcePartitionInfo() { | ||
return sourcePartitionInfo; | ||
} | ||
|
||
public String getBas64EncodedSourcePartitionInfo() { | ||
return Base64.getEncoder().encodeToString(getSourcePartitionInfo().toByteArray()); | ||
} | ||
} |
Oops, something went wrong.