OfficeIMO.Data.Arrow 3.4.1

Prefix Reserved
dotnet add package OfficeIMO.Data.Arrow --version 3.4.1
                    
NuGet\Install-Package OfficeIMO.Data.Arrow -Version 3.4.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.Data.Arrow" Version="3.4.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.Data.Arrow" Version="3.4.1" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.Data.Arrow" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.Data.Arrow --version 3.4.1
                    
#r "nuget: OfficeIMO.Data.Arrow, 3.4.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.Data.Arrow@3.4.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.Data.Arrow&version=3.4.1
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.Data.Arrow&version=3.4.1
                    
Install as a Cake Tool

OfficeIMO.Data.Arrow

OfficeIMO.Data.Arrow converts any forward-only DbDataReader—including readers from OfficeIMO.Excel and OfficeIMO.CSV—into bounded Apache Arrow record batches.

dotnet add package OfficeIMO.Data.Arrow
using Apache.Arrow;
using OfficeIMO.Data.Arrow;
using OfficeIMO.Excel;
using System.Data.Common;

using DbDataReader reader = ExcelDocument.OpenDataReader(
    "report.xlsx",
    new ExcelReadOptions { InferSchema = true });

await foreach (RecordBatch batch in reader.ReadArrowBatchesAsync(
    new ArrowReadOptions { BatchSize = 65_536 },
    cancellationToken)) {
    using (batch) {
        // Send the batch to an analytics, IPC, or columnar processing pipeline.
    }
}

The adapter does not accumulate the complete input in an Arrow table. Batch size and supported fallback behavior are controlled through ArrowReadOptions; the source reader retains ownership of its own buffering and memory policy. Native adapters cover Boolean, integer, floating-point, decimal, timestamp, DateOnly, TimeOnly, Guid, binary, and text columns. Unsupported CLR types are converted to invariant text by default; set ConvertUnsupportedTypesToString to false when the pipeline should reject them instead. Decimal values must be exactly representable at ArrowReadOptions.DecimalScale; conversion fails instead of silently rounding an inexact value. Increase the scale when the source contains more significant fractional digits. When the source schema is already known, set ArrowReadOptions.ColumnTypes in ordinal order and leave reader-side inference disabled. The adapter snapshots and validates the explicit types before reading, so the conversion does not pay a schema-sampling pass. CLR DateTime columns become timezone-less Arrow timestamps so spreadsheet and database wall-clock values retain their original meaning. DateTimeOffset columns become UTC-aware timestamps and preserve their instant. Temporal columns use nanoseconds by default so CLR 100-nanosecond precision is retained. Set ArrowReadOptions.TemporalUnit to TimeUnit.Microsecond when the wider microsecond timestamp range is required and accepting sub-microsecond precision loss is appropriate.

Managed and C streams

For consumers that expect Apache Arrow's stream contract, open a managed IArrowArrayStream. It keeps the same bounded-batch behavior and leaves the source reader caller-owned:

using Apache.Arrow.Ipc;

using IArrowArrayStream stream = reader.OpenArrowStream(
    new ArrowReadOptions { BatchSize = 16_384 });

while (await stream.ReadNextRecordBatchAsync(cancellationToken) is { } batch) {
    using (batch) {
        // Consume one bounded batch.
    }
}

Native engines can consume the same pipeline through the Arrow C Data Interface:

using ArrowCArrayStreamOwner stream = reader.ExportArrowCStream(
    new ArrowReadOptions { BatchSize = 16_384 });

nint address = stream.Address;
// Pass address to a native ArrowArrayStream consumer while stream remains alive.

ArrowCArrayStreamOwner owns both the unmanaged stream struct and its managed callbacks. Keep it alive for the complete native call and dispose it afterwards. Native code may invoke the stream's release callback, but it must not free the struct allocation. Each get_next call produces at most the configured batch size; the full worksheet or CSV is never collected into one RecordBatch.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.4.1 0 9/7/2026
3.4.0 32 9/6/2026
3.3.0 49 9/2/2026