| 226 | } |
| 227 | |
| 228 | BlockingReason isBlocked(ContinueFuture* future) override { |
| 229 | if (numRows_.has_value()) { |
| 230 | return BlockingReason::kNotBlocked; |
| 231 | } |
| 232 | |
| 233 | auto joinBridge = operatorCtx_->task()->getCustomJoinBridge( |
| 234 | operatorCtx_->driverCtx()->splitGroupId, planNodeId()); |
| 235 | auto numRows = std::dynamic_pointer_cast<CustomJoinBridge>(joinBridge) |
| 236 | ->numRowsOrFuture(future); |
| 237 | |
| 238 | if (!numRows.has_value()) { |
| 239 | return BlockingReason::kWaitForJoinBuild; |
| 240 | } |
| 241 | numRows_ = std::move(numRows); |
| 242 | remainingLimit_ = numRows_.value(); |
| 243 | |
| 244 | return BlockingReason::kNotBlocked; |
| 245 | } |
| 246 | |
| 247 | bool isFinished() override { |
| 248 | return finished_ || (noMoreInput_ && input_ == nullptr); |
nothing calls this directly
no test coverage detected