mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Merge pull request #8892 from PerformanceVision/select_constants
DB::Exception: Parameters are out of bound when we have a constant on the SELECT clause
This commit is contained in:
commit
3e8179108b
@ -141,8 +141,6 @@ void sortBlock(Block & block, const SortDescription & description, UInt64 limit)
|
||||
{
|
||||
if (!is_column_const)
|
||||
block.getByPosition(i).column = block.getByPosition(i).column->permute(perm, limit);
|
||||
else if (limit != 0) // LIMIT exists
|
||||
block.getByPosition(i).column = block.getByPosition(i).column->cut(0, limit);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -0,0 +1 @@
|
||||
42
|
@ -0,0 +1 @@
|
||||
SELECT 42 AS foo ORDER BY foo LIMIT 2
|
Loading…
Reference in New Issue
Block a user