Merge pull request #11366 from ClickHouse/fix-SortingTransform-bug

Fix sorting transform bug
This commit is contained in:
Alexander Kuzmenkov 2020-06-03 12:11:57 +03:00 committed by GitHub
commit 8bf8b44510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -285,7 +285,9 @@ IProcessor::Status SortingTransform::prepareGenerate()
if (output.isFinished())
{
inputs.front().close();
for (auto & input : inputs)
input.close();
return Status::Finished;
}

View File

@ -0,0 +1 @@
SELECT number FROM (SELECT number FROM system.numbers LIMIT 999990) ORDER BY number ASC LIMIT 100, 65535 SETTINGS max_bytes_before_external_sort = 1000000 format Null