mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix issues
This commit is contained in:
parent
1d52c1b9d0
commit
767a790fce
@ -39,7 +39,7 @@ public:
|
||||
if (!isUnsignedInteger(arguments[0].type))
|
||||
throw Exception("First argument for function " + getName() + " must be unsigned integer", ErrorCodes::ILLEGAL_TYPE_OF_ARGUMENT);
|
||||
|
||||
if (!arguments[0].column)
|
||||
if (!arguments[0].column || !isColumnConst(*arguments[0].column))
|
||||
throw Exception("First argument for function " + getName() + " must be constant", ErrorCodes::ILLEGAL_COLUMN);
|
||||
|
||||
const size_t n = arguments[0].column->getUInt(0);
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
1
tests/queries/0_stateless/01277_random_fixed_string.sql
Normal file
1
tests/queries/0_stateless/01277_random_fixed_string.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT DISTINCT c > 30000 FROM (SELECT arrayJoin(arrayMap(x -> reinterpretAsUInt8(substring(randomFixedString(100), x + 1, 1)), range(100))) AS byte, count() AS c FROM numbers(100000) GROUP BY byte ORDER BY byte);
|
Loading…
Reference in New Issue
Block a user