Throw an error in CreatingSetsOnTheFlyTransform in case of input for finished

This commit is contained in:
vdimir 2022-08-29 11:27:08 +00:00
parent b0e2616aa9
commit 24f62e8486
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862

View File

@ -81,11 +81,7 @@ IProcessor::Status CreatingSetsOnTheFlyTransform::prepare()
else
{
/// Should not happen because processor inserted before join that reads all the data
/// But let's handle this case just for safety.
set->state = SetWithState::State::Suspended;
LOG_DEBUG(log, "{}: Processor finished, but not all input was read, cancelling building set after using {}",
getDescription(), formatBytesHumanReadable(set->getTotalByteCount()));
set.reset();
throw Exception(ErrorCodes::LOGICAL_ERROR, "Processor finished, but not all input was read");
}
}