```
select count() from numbers(10) where number in tuple(1, 2, 3, 4, 5) settings max_temporary_columns = 3

Received exception from server (version 20.7.1):
Code: 165. DB::Exception: Received from localhost:9000. DB::Exception: Too many temporary columns: _dummy, 1, 2, 3. Maximum: 3. 
```

Workaround: Avoid function in tuple.
```select count() from numbers(10) where number in (1, 2, 3, 4, 5) settings max_temporary_columns = 3```
invert_left_infinities = true;
            left_point[i].update(new_range->left);
        }
        else
        {
            if (invert_left_infinities)
                left_point[i].update(ValueWithInfinity::PLUS_INFINITY);
            else
                left_point[i].update(ValueWithInfinity::MINUS_INFINITY);
        }
        if (new_range->right_bounded)
        {
            if (!new_range->right_included)
                invert_right_infinities = true;
            right_point[i].update(new_range->right);
        }
        else
        {
            if (invert_right_infinities)
                right_point[i].update(ValueWithInfinity::MINUS_INFINITY);
            else
                right_point[i].update(ValueWithInfinity::PLUS_INFINITY);
        }
    }
    auto compare = [](const IColumn & lhs, const ValueWithInfinity & rhs, size_t row)
    {
        auto type = rhs.getType();
        
        if (type != ValueWithInfinity::NORMAL)
            return -static_cast<int>(type);