Skip to main content
Glama
kzmshx
by kzmshx
0004-use-pyarrow-for-data-passing.md610 B
# 4. Use PyArrow for data passing Date: 2025-11-28 ## Status Accepted ## Context We needed an efficient way to pass Python dict lists to DuckDB. ## Decision Adopted passing data via PyArrow tables registered with DuckDB. ```python schema = pa.schema([(key, pa.string()) for key in all_keys]) table = pa.table(columns_data, schema=schema) conn.register("files", table) ``` ## Consequences - Column types can be explicitly specified with `pa.schema()` - Arrow format is columnar and memory-efficient - DuckDB natively supports Arrow format, minimizing conversion overhead - Added dependency on pyarrow

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kzmshx/frontmatter-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server