Skip to content

Commit

Permalink
[Flink] Fix: Incremental read filter bug: equal should be CommitOp ty…
Browse files Browse the repository at this point in the history
…pe (#561)

Signed-off-by: fphantam <[email protected]>
  • Loading branch information
F-PHantam authored Nov 25, 2024
1 parent dd54ddb commit 4c5bbc0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

package com.dmetasoul.lakesoul.meta

import com.dmetasoul.lakesoul.meta.entity.{DataCommitInfo, PartitionInfo}

import java.net.URI
import com.dmetasoul.lakesoul.meta.entity.{CommitOp, DataCommitInfo, PartitionInfo}

import java.util
import java.util.{Objects, UUID}
Expand Down Expand Up @@ -219,15 +217,15 @@ object DataOperation {
loop.breakable {
for (dataItem <- dataCommitInfoList) {
count += 1
if ("UpdateCommit".equals(dataItem.getCommitOp) && startVersionTimestamp != dataItem
if (CommitOp.UpdateCommit.equals(dataItem.getCommitOp) && startVersionTimestamp != dataItem
.getTimestamp && count != 1) {
updated = true
loop.break()
}
if (startVersionTimestamp == dataItem.getTimestamp) {
preVersionUUIDs ++= dataItem.getSnapshotList.asScala.map(DBUtil.toJavaUUID)
} else {
if ("CompactionCommit".equals(dataItem.getCommitOp)) {
if (CommitOp.CompactionCommit.equals(dataItem.getCommitOp)) {
val compactShotList = dataItem.getSnapshotList.asScala.map(DBUtil.toJavaUUID).toArray
compactionUUIDs += compactShotList(0)
if (compactShotList.length > 1) {
Expand Down

0 comments on commit 4c5bbc0

Please sign in to comment.