Point a Dashboard at a Parquet File — Locally or in the Cloud

Parquet has quietly become the default way to store analytical data at scale. It is columnar, compressed, splittable, and understood by nearly every modern data tool. If your pipeline writes Parquet — and these days most do — you want your charts to read it directly, without an export step, a staging database, or a round trip through pandas.

CanvasXpress dashboards now do exactly that. A new ParquetSource in the CanvasXpress connectors package lets you point a dashboard at a Parquet file — on local disk or sitting in cloud object storage — and have every panel query it live, with filtering and aggregation pushed down to where the data lives.

The old way, and why it chafed

Under the hood, CanvasXpress connectors can already read Parquet through DuckDB, which has first-class Parquet support. But doing it by hand meant writing a DuckDB connection string and a SELECT ... FROM read_parquet('...') query yourself, with no worked example to copy and no affordance in the connector UI. It worked, but it was expert-only plumbing.

ParquetSource turns that plumbing into a one-liner.

Reading a local Parquet file

Here is the whole thing in Python:

from cx_connectors.sources import ParquetSource
from cx_connectors.sources.base import to_cx

source = ParquetSource("sales.parquet")
cx_object = to_cx(source)

ParquetSource is a thin, convenient specialization of the connectors' SQL source. You hand it a path (or a list of columns to project), and it builds the DuckDB connection and the read_parquet() query for you. Because it is a SQL source underneath, everything the rest of the stack already knows how to do just works: column discovery, the data API, joins across sources, and — crucially — pushdown.

Reading remote objects in S3 or over HTTPS

The same class reads remote Parquet. A public HTTPS URL needs nothing special:

source = ParquetSource("https://example-bucket.s3.amazonaws.com/events.parquet")

For a private object in S3-compatible storage, you pass credentials, and the connector threads them safely through to DuckDB:

source = ParquetSource(
    "s3://my-bucket/warehouse/orders.parquet",
    s3={
        "region": "us-east-1",
        "access_key_id": "...",
        "secret_access_key": "...",
    },
)

The storage location is always a server-side value you control — never something a browser sends — so the trust model matches the connectors' existing SQL sources exactly. Credentials are masked in any listing of your configured sources, so a secret never leaks back out through the management interface.

The payoff: pushdown over big files

The reason to read Parquet directly, rather than loading it into memory, is size. Parquet files routinely hold millions of rows. You do not want all of them in the browser; you want the aggregated handful your chart actually draws.

Because a Parquet source behaves as an ordinary SQL source, the dashboards' pushdown mechanism applies to it unchanged. When a panel asks for "total amount by region," that grouping and summation run inside DuckDB against the file, and only the aggregated rows cross the wire:

{
  "groupBy": ["region", "product"],
  "measures": [
    { "fn": "sum", "column": "amount" },
    { "fn": "count" }
  ]
}

A file with hundreds of thousands of rows can answer a panel with a response of a few dozen rows. Linked filters work the same way — pick a region in one panel and the others re-query the file with that predicate pushed down, rather than shipping the whole dataset and filtering in the page.

Registering a Parquet source without writing code

If you are using the bundled connectors web application, you no longer need to touch a connection string at all. The register-a-source form now offers "Parquet file (DuckDB)" as a source kind. You fill in the path or URL, optionally list the columns you care about, and — for an s3:// source — expand the credentials fields. The connector stores it as a plain SQL source, so the data API, columns endpoint, joins, and pushdown all serve it with no special handling.

A worked example you can run

The dashboards package ships a complete Parquet-backed example: a spec with multiple linked panels reading a demo Parquet file through a connector endpoint with pushdown, a standalone adapter that serves it, and a seed script that generates the demo file. It is there to be copied. The how-to guide walks through registering a local or remote Parquet source, pointing a panel at it, and pushing filtering and aggregation down to the file.

When to reach for it

ParquetSource is the right tool whenever:

It is a small addition with an outsized reach: the formats your pipeline already produces become, with one line, a live data source behind an interactive CanvasXpress dashboard.