parquetread — Read Parquet columnar data into a table.
parquetread(filename) decodes a Parquet file with Arrow-backed Parquet support and returns a RunMat table. Common numeric, logical, string, date, and timestamp columns are mapped to table variables.
Syntax
T = parquetread(filename)
T = parquetread(filename, nameValuePairs...)Inputs
filename- Type
StringScalar- Required
- Yes
- Description
- Parquet file path.
nameValuePairs- Type
Any- Required
- Variadic
- Description
- Options such as SelectedVariableNames, RowGroups, or OutputType.
Returns
T- Type
Any- Description
- Host table with file-derived row count and variable classes.
Errors
RunMat:table:InvalidArgument- When
- Arguments or table metadata are invalid.
- Message
table: invalid argument
RunMat:table:InvalidIndex- When
- Table indexing is invalid.
- Message
table: invalid index
RunMat:table:InvalidVariable- When
- A table variable name or value is invalid.
- Message
table: invalid variable
Behavior
SelectedVariableNames limits the imported variables, preserves the requested output order, and rejects unknown or duplicate names.
RowGroups accepts one-based row-group indices and decodes only those groups.
OutputType accepts "table"; "timetable" is rejected until timetable row-time synthesis for Parquet is implemented.
RowFilter is rejected until rowfilter predicate execution is available.
Unsupported nested or complex Parquet logical types raise deterministic import errors instead of producing partial columns.
Parquet support currently requires a native runtime. Browser/WASM calls report RunMat:readtable:UnsupportedFileType; no GPU kernel or fusion route is provided. File paths and admitted option values are host controls; results remain host-resident.
All native signed and unsigned integer column classes are preserved. RowGroups controls are decoded from native integer storage without a double round trip. RowTimes and timetable output remain unsupported.
Examples
Read a Parquet file
T = parquetread("measurements.parquet")Read selected columns and row groups
T = parquetread("measurements.parquet", "SelectedVariableNames", ["time", "value"], "RowGroups", 2)Using parquetread with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how parquetread changes the result.
Run a small parquetread example, explain the result, then change one input and compare the output.
FAQ
Does parquetread run on the GPU?⌄
No. Parquet is a compressed columnar file format, so decoding and table construction happen on the host.
Related Io functions
Tabular
arrayDatastore · csvread · csvwrite · detectImportOptions · dlmread · dlmwrite · fileDatastore · getvaropts · parquetDatastore · parquetinfo · readcell · readmatrix · readtable · readtimetable · setvaropts · setvartype · spreadsheetImportOptions · writecell · writematrix · writetable · writetimetable · xlsread · xlswrite
Repl Fs
addpath · cd · copyfile · delete · dir · exist · fileattrib · fileparts · filesep · fullfile · genpath · getenv · getpref · isenv · isfile · isfolder · ispref · ls · matlabroot · memmapfile · memmapfile.subsasgn · memmapfile.subsref · mkdir · movefile · open · opentoline · path · pathsep · pcode · pwd · readstruct · rehash · restoredefaultpath · rmdir · rmpath · run · savepath · setenv · setpref · system · tempdir · tempname · uigetdir · uigetfile · uiputfile · unsetenv · userpath · what · winqueryreg · xmlread · xmlwrite
Data
commit · data.copy · data.create · data.delete · data.exists · data.export · data.import · data.inspect · data.list · data.move · data.open · DataArray.chunk_shape · DataArray.codec · DataArray.dtype · DataArray.fill · DataArray.name · DataArray.rank · DataArray.read · DataArray.resize · DataArray.shape · DataArray.write · Dataset.array · Dataset.arrays · Dataset.attrs · Dataset.begin · Dataset.get_attr · Dataset.has_array · Dataset.id · Dataset.path · Dataset.refresh · Dataset.set_attr · Dataset.set_attrs · Dataset.snapshot · Dataset.version · DataTransaction.abort · DataTransaction.commit · DataTransaction.create_array · DataTransaction.delete_array · DataTransaction.fill · DataTransaction.id · DataTransaction.resize · DataTransaction.set_attr · DataTransaction.set_attrs · DataTransaction.status · DataTransaction.write
Filetext
fclose · feof · fgetl · fgets · fileread · filewrite · fopen · fprintf · fread · frewind · fwrite · readlines · writelines
Import
Json
Source you can read
Every RunMat function's source is public. Read exactly how parquetread is executed, line by line, in Rust.
- View the source for parquetread in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is a runtime that executes MATLAB-syntax code fast on any GPU. The runtime is free for individuals, including freelancers; students and faculty at an academic institution, for teaching or research there; contributors to an open-source project, for work on that project; organizations with 250 or fewer people and US$10M or less in annual revenue; and anyone, for non-production use. See runmat.com/license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.