mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix test
This commit is contained in:
parent
ccc426cd10
commit
6648b89843
@ -576,6 +576,8 @@ public:
|
|||||||
{
|
{
|
||||||
if (isSmall())
|
if (isSmall())
|
||||||
{
|
{
|
||||||
|
if (small.size())
|
||||||
|
return 0;
|
||||||
auto min_val = std::numeric_limits<std::make_unsigned_t<T>>::max();
|
auto min_val = std::numeric_limits<std::make_unsigned_t<T>>::max();
|
||||||
for (const auto & x : small)
|
for (const auto & x : small)
|
||||||
{
|
{
|
||||||
@ -593,11 +595,13 @@ public:
|
|||||||
{
|
{
|
||||||
if (isSmall())
|
if (isSmall())
|
||||||
{
|
{
|
||||||
|
if (small.size())
|
||||||
|
return 0;
|
||||||
auto max_val = std::numeric_limits<std::make_unsigned_t<T>>::min();
|
auto max_val = std::numeric_limits<std::make_unsigned_t<T>>::min();
|
||||||
for (const auto & x : small)
|
for (const auto & x : small)
|
||||||
{
|
{
|
||||||
auto val = x.getValue();
|
auto val = x.getValue();
|
||||||
if (val < max_val)
|
if (val > max_val)
|
||||||
max_val = val;
|
max_val = val;
|
||||||
}
|
}
|
||||||
return max_val;
|
return max_val;
|
||||||
|
@ -91,9 +91,9 @@ tag4 [0,1,2,3,4,5,6,7,8,9] [5,999,2] [2,888,20] [0,1,3,4,6,7,8,9,20]
|
|||||||
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,100,200,500]
|
[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,100,200,500]
|
||||||
[30,31,32,33,100,200,500]
|
[30,31,32,33,100,200,500]
|
||||||
[100,200,500]
|
[100,200,500]
|
||||||
4294967295
|
0
|
||||||
4294967295
|
0
|
||||||
4294967295
|
0
|
||||||
1
|
1
|
||||||
0
|
0
|
||||||
0
|
0
|
||||||
|
Loading…
Reference in New Issue
Block a user