mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Merge pull request #62288 from ClickHouse/fix-morton
Fix `mortonEncode` `use-of-uninitialized-value`
This commit is contained in:
commit
dd6e5be27b
@ -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