PDL::IO::Arrow

Read and write PDL ndarrays via Apache Arrow IPC and Apache Parquet, backed by a C++20 / XS bridge using libarrow, libparquet, and the PDL C API (pdl.h / pdlcore.h).

Features

Synopsis

use PDL;
use PDL::IO::Arrow qw(rarrow warrow rparquet wparquet);

# Write named PDL ndarrays to Parquet or Arrow IPC
wparquet({
    id    => long([1, 2, 3]),
    score => double([0.5, 1.5, 2.5]),
}, 'out.parquet');

# Read back into PDL ndarrays
my $cols = rparquet('out.parquet');
print $cols->{score}, "\n";

Prerequisites

Installation

perl Makefile.PL
make
make test
make install

License

Apache License, Version 2.0.