Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Yicong-Huang committed Dec 19, 2024
1 parent 65c626e commit 09441d2
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ class ExecutionResultService(
if (StorageConfig.resultStorageMode.toLowerCase == "mongodb") {
val opStorage = ResultStorage
.getOpResultStorage(workflowIdentity)
.get(physicalPlan.getPhysicalOpsOfLogicalOp(opId).head.id.logicalOpId)
.get(opId)
opStorage match {
case mongoDocument: MongoDocument[Tuple] =>
val tableCatStats = mongoDocument.getCategoricalStats
Expand All @@ -267,8 +267,9 @@ class ExecutionResultService(
})
)

// // first clear all the results
// sinkOperators.clear()
// first clear all the results
ResultStorage.getOpResultStorage(workflowIdentity).clear()

workflowStateStore.resultStore.updateState { _ =>
WorkflowResultStore() // empty result store
}
Expand Down

0 comments on commit 09441d2

Please sign in to comment.