Skip to main content

Description

The Npy format is designed to load a NumPy array from a .npy file into ClickHouse. The NumPy file format is a binary format used for efficiently storing arrays of numerical data. During import, ClickHouse treats the top level dimension as an array of rows with a single column. The table below gives the supported Npy data types and their corresponding type in ClickHouse:

Data types matching

Example usage

Saving an array in .npy format using Python

Reading a NumPy file in ClickHouse

Query
Response

Selecting data

You can select data from a ClickHouse table and save it into a file in the Npy format using the following command with clickhouse-client:

Format settings

Last modified on June 19, 2026