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

Giorgi / DuckDB.NET / 28017109290

23 Jun 2026 09:41AM UTC coverage: 89.361% (-0.4%) from 89.738%
28017109290

push

github

Giorgi
Merge branch 'main' into nightly-builds

1330 of 1545 branches covered (86.08%)

Branch coverage included in aggregate %.

362 of 413 new or added lines in 32 files covered. (87.65%)

4 existing lines in 3 files now uncovered.

2769 of 3042 relevant lines covered (91.03%)

434285.19 hits per line

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

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

3
internal sealed class IntervalVectorDataReader : VectorDataReaderBase
4
{
5
    internal unsafe IntervalVectorDataReader(void* dataPointer, ulong* validityMaskPointer, DuckDBType columnType, string columnName) : base(dataPointer, validityMaskPointer, columnType, columnName)
189✔
6
    {
7
    }
189✔
8

9
    protected override T GetValidValue<T>(ulong offset)
10
    {
11
        if (DuckDBType == DuckDBType.Interval)
18!
12
        {
13
            var interval = GetFieldData<DuckDBInterval>(offset);
18✔
14

15
            if (typeof(T) == typeof(TimeSpan))
18✔
16
            {
17
                var timeSpan = (TimeSpan)interval;
3✔
18
                return (T)(object)timeSpan;
3✔
19
            }
20

21
            return (T)(object)interval;
15✔
22
        }
23

NEW
24
        return base.GetValidValue<T>(offset);
×
25
    }
26

27
    internal override object GetValue(ulong offset, Type targetType)
28
    {
29
        return DuckDBType switch
751,057!
30
        {
751,057✔
31
            DuckDBType.Interval => GetInterval(offset, targetType),
751,057✔
32
            _ => base.GetValue(offset, targetType)
×
33
        };
751,057✔
34
    }
35

36
    private object GetInterval(ulong offset, Type targetType)
37
    {
38
        var interval = GetFieldData<DuckDBInterval>(offset);
751,057✔
39

40
        if (targetType == typeof(TimeSpan))
751,057✔
41
        {
42
            return (TimeSpan)interval;
751,051✔
43
        }
44

45
        return interval;
6✔
46
    }
47
}
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