• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Giorgi / DuckDB.NET / 21786556530

07 Feb 2026 08:39PM UTC coverage: 89.155% (-0.07%) from 89.223%
21786556530

push

github

Giorgi
Added support for clearing in-progress adapter

Requires DuckDB 1.5

1199 of 1393 branches covered (86.07%)

Branch coverage included in aggregate %.

6 of 8 new or added lines in 1 file covered. (75.0%)

193 existing lines in 43 files now uncovered.

2336 of 2572 relevant lines covered (90.82%)

557295.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.67
/DuckDB.NET.Data/DataChunk/Reader/IntervalVectorDataReader.cs
1
namespace DuckDB.NET.Data.DataChunk.Reader;
2

3
internal sealed class IntervalVectorDataReader : VectorDataReaderBase
4
{
5
    private static readonly Type TimeSpanType = typeof(TimeSpan);
3✔
6
    private static readonly Type TimeSpanNullableType = typeof(TimeSpan?);
3✔
7

8
    internal unsafe IntervalVectorDataReader(void* dataPointer, ulong* validityMaskPointer, DuckDBType columnType, string columnName) : base(dataPointer, validityMaskPointer, columnType, columnName)
201✔
9
    {
10
    }
201✔
11

12
    protected override T GetValidValue<T>(ulong offset, Type targetType)
13
    {
14
        if (DuckDBType == DuckDBType.Interval)
18!
15
        {
16
            var interval = GetFieldData<DuckDBInterval>(offset);
18✔
17

18
            if (targetType == TimeSpanType || targetType == TimeSpanNullableType)
18✔
19
            {
20
                var timeSpan = (TimeSpan)interval;
3✔
21
                return (T)(object)timeSpan;
3✔
22
            }
23

24
            return (T)(object)interval;
15✔
25
        }
26

UNCOV
27
        return base.GetValidValue<T>(offset, targetType);
×
28
    }
29

30
    internal override object GetValue(ulong offset, Type targetType)
31
    {
32
        return DuckDBType switch
751,603!
33
        {
751,603✔
34
            DuckDBType.Interval => GetInterval(offset, targetType),
751,603✔
UNCOV
35
            _ => base.GetValue(offset, targetType)
×
36
        };
751,603✔
37
    }
38

39
    private object GetInterval(ulong offset, Type targetType)
40
    {
41
        var interval = GetFieldData<DuckDBInterval>(offset);
751,603✔
42

43
        if (targetType == TimeSpanType)
751,603✔
44
        {
45
            return (TimeSpan)interval;
751,597✔
46
        }
47

48
        return interval;
6✔
49
    }
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc