mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
Fix mortonEncode with no rows
This commit is contained in:
parent
03feab3d20
commit
9e1d8b8aaa
@ -321,6 +321,9 @@ public:
|
||||
|
||||
ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr & result_type, size_t input_rows_count) const override
|
||||
{
|
||||
if (input_rows_count == 0)
|
||||
return ColumnUInt64::create();
|
||||
|
||||
return selector.selectAndExecute(arguments, result_type, input_rows_count);
|
||||
}
|
||||
|
||||
|
@ -0,0 +1,2 @@
|
||||
4294967286
|
||||
4294967286
|
@ -0,0 +1,2 @@
|
||||
SELECT mortonEncode(materialize((1, 1)), 65534, 65533);
|
||||
SELECT mortonEncode((1, 1), 65534, 65533);
|
Loading…
Reference in New Issue
Block a user