Skip to content

Commit

Permalink
branch-3.0 [fix](hudi) remove session variable field in HudiScanNode #…
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Dec 22, 2024
1 parent 8861e67 commit 6fd99f3
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ public class HudiScanNode extends HiveScanNode {

private final AtomicLong noLogsSplitNum = new AtomicLong(0);

private final boolean useHiveSyncPartition;

private HoodieTableMetaClient hudiClient;
private String basePath;
private String inputFormat;
Expand All @@ -102,7 +100,6 @@ public class HudiScanNode extends HiveScanNode {

private boolean partitionInit = false;
private HoodieTimeline timeline;
private Option<String> snapshotTimestamp;
private String queryInstant;

private final AtomicReference<UserException> batchException = new AtomicReference<>(null);
Expand All @@ -113,7 +110,6 @@ public class HudiScanNode extends HiveScanNode {
private boolean incrementalRead = false;
private TableScanParams scanParams;
private IncrementalRelation incrementalRelation;
private SessionVariable sessionVariable;

/**
* External file scan node for Query Hudi table
Expand All @@ -136,11 +132,9 @@ public HudiScanNode(PlanNodeId id, TupleDescriptor desc, boolean needCheckColumn
hmsTable.getFullQualifiers());
}
}
useHiveSyncPartition = hmsTable.useHiveSyncPartition();
this.scanParams = scanParams.orElse(null);
this.incrementalRelation = incrementalRelation.orElse(null);
this.incrementalRead = (this.scanParams != null && this.scanParams.incrementalRead());
this.sessionVariable = sessionVariable;
}

@Override
Expand Down Expand Up @@ -215,7 +209,6 @@ protected void doInitialize() throws UserException {
throw new UserException("Hudi does not support `FOR VERSION AS OF`, please use `FOR TIME AS OF`");
}
queryInstant = tableSnapshot.getTime().replaceAll("[-: ]", "");
snapshotTimestamp = Option.of(queryInstant);
} else {
Option<HoodieInstant> snapshotInstant = timeline.lastInstant();
if (!snapshotInstant.isPresent()) {
Expand All @@ -224,7 +217,6 @@ protected void doInitialize() throws UserException {
return;
}
queryInstant = snapshotInstant.get().getTimestamp();
snapshotTimestamp = Option.empty();
}
}

Expand Down

0 comments on commit 6fd99f3

Please sign in to comment.