You have to provide the following information whenever possible.

**Describe the bug**

Interval data type is not passed correctly from subquery

**Does it reproduce on recent release?**

Yes, tested on 21.6.5.37.

**How to reproduce**

```sql
SELECT
    toIntervalDay(5) AS interval,
    now() + interval AS res

┌─interval─┬─────────────────res─┐
│        5 │ 2021-07-03 13:11:45 │
└──────────┴─────────────────────┘
```

But if I wrap interval calculation in subquery:

```sql
SELECT
    (SELECT toIntervalDay(5)) AS interval,
    now() + interval AS res

Received exception from server (version 21.6.5):
Code: 70. DB::Exception: Received from localhost:9000. DB::Exception: Conversion from Int8 to IntervalDay is not supported: While processing CAST(5, 'IntervalDay') AS interval, now() + interval AS res.
```

**Expected behavior**

Both queries should work the same way.
{
        ColumnUInt8::MutablePtr null_map = copyNullMap(arguments[0].column);
        const auto & nested =  columnGetNested(arguments[0]);
        if (const ColumnFixedString * col_from = checkAndGetColumn<ColumnFixedString>(nested.column.get()))
        {
            auto col_to = ColumnString::create();
            const ColumnFixedString::Chars & data_from = col_from->getChars();
            ColumnString::Chars & data_to = col_to->getChars();
            ColumnString::Offsets & offsets_to = col_to->getOffsets();
            size_t size = col_from->size();
            size_t n = col_from->getN();
            data_to.resize(size * (n + 1)); 
            offsets_to.resize(size);
            size_t offset_from = 0;
            size_t offset_to = 0;
            for (size_t i = 0; i < size; ++i)
            {
                if (!null_map || !null_map->getData()[i])
                {
                    size_t bytes_to_copy = n;
                    while (bytes_to_copy > 0 && data_from[offset_from + bytes_to_copy - 1] == 0)
                        --bytes_to_copy;
                    memcpy(&data_to[offset_to], &data_from[offset_from], bytes_to_copy);
                    offset_to += bytes_to_copy;
                }
                data_to[offset_to] = 0;