Skip to content

Commit

Permalink
Inline tableFinishInfoSupplier
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjian2664 committed Nov 28, 2024
1 parent 9669257 commit b7ebfa3
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ private enum State
private final TableExecuteContext tableExecuteContext;
private final boolean outputRowCount;

private final Supplier<TableFinishInfo> tableFinishInfoSupplier;

public TableFinishOperator(
OperatorContext operatorContext,
TableFinisher tableFinisher,
Expand All @@ -150,9 +148,8 @@ public TableFinishOperator(
this.descriptor = requireNonNull(descriptor, "descriptor is null");
this.statisticsCpuTimerEnabled = statisticsCpuTimerEnabled;
this.tableExecuteContext = requireNonNull(tableExecuteContext, "tableExecuteContext is null");
this.tableFinishInfoSupplier = createTableFinishInfoSupplier(outputMetadata, statisticsTiming);
this.outputRowCount = outputRowCount;
operatorContext.setInfoSupplier(tableFinishInfoSupplier);
operatorContext.setInfoSupplier(createTableFinishInfoSupplier(outputMetadata, statisticsTiming));
}

@Override
Expand Down

0 comments on commit b7ebfa3

Please sign in to comment.