Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -81,7 +81,6 @@

import java.lang.reflect.Field;
import java.time.Duration;
import java.util.Collection;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
Expand DownExpand Up@@ -488,14 +487,6 @@ private IsChanged tablesOrDataChanged(Env env, SqlCacheContext sqlCacheContext)
TableIf tableIf = findTableIf(env, fullTableName);
if (tableIf instanceof OlapTable) {
OlapTable olapTable = (OlapTable) tableIf;
Collection<Long> partitionIds = scanTable.getScanPartitions();
try {
olapTable.getVersionInBatchForCloudMode(partitionIds);
} catch (RpcException e) {
LOG.warn("failed to get version in batch for table {}", fullTableName, e);
return IsChanged.CHANGED_AND_INVALIDATE_CACHE;
}

for (Long scanPartitionId : scanTable.getScanPartitions()) {
Partition partition = olapTable.getPartition(scanPartitionId);
// partition == null: is this partition truncated?
Expand Down
Loading