---
title: "Getting Data Into ClickHouse - Part 3 - Using S3"
description: "ClickHouse can both query data in place on Amazon S3 and ingest it, shown here on an 11.5-billion-row, ~600GB forex tick dataset stored as zstd CSV and Parquet."
url: "https://swe.quest/articles/getting-data-into-clickhouse-part-3-using-s3-3c57bebcb705e26d"
canonical: "https://clickhouse.com/blog/getting-data-into-clickhouse-part-3-s3"
source: "ClickHouse"
published: "2022-09-16"
difficulty: "medium"
kind: "How-to"
reading_minutes: 21
tags: ["analytics","sql","cloud","performance","data-pipelines"]
---

# Getting Data Into ClickHouse - Part 3 - Using S3

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2022-09-16, 21 min read, How-to. Original: [https://clickhouse.com/blog/getting-data-into-clickhouse-part-3-s3](https://clickhouse.com/blog/getting-data-into-clickhouse-part-3-s3)

## Summary

ClickHouse can both query data in place on Amazon S3 and ingest it, shown here on an 11.5-billion-row, ~600GB forex tick dataset stored as zstd CSV and Parquet. The s3 table function supports glob patterns and schema inference for ad-hoc queries. A full-dataset aggregation over all 66 pairs took about 583s on one node, about 435s with max\_download\_threads=12, and about 226s when distributed across the cluster with s3Cluster (roughly 50M rows/s). The examples also use window functions to find the largest daily spread changes and note that Parquet files parse less parallelly than CSV.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [SQL](https://swe.quest/tags/sql.md) (Languages)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)

## Prerequisites

- SQL basics ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- ClickHouse basics ([easy posts on Analytics & OLAP](https://swe.quest/tags/analytics.md?difficulty=easy))
- Amazon S3 ([easy posts on Storage systems](https://swe.quest/tags/storage-systems.md?difficulty=easy))

## Keywords

ClickHouse, Amazon S3, s3Cluster, Parquet, ClickHouse Cloud, max\_download\_threads

## Related posts

- [A Deep Dive into Apache Parquet with ClickHouse - Part 1](https://swe.quest/articles/a-deep-dive-into-apache-parquet-with-clickhouse-part-1-cafa50694ad68bf6.md): ClickHouse · 2023-04-18 · Medium · 11 min read · Analytics & OLAP, Data pipelines, SQL
  ClickHouse can read and write Apache Parquet through its file and s3 table functions, using the same Parquet code in ClickHouse Local and ClickHouse Server.
- [ClickHouse and The One Trillion Row Challenge](https://swe.quest/articles/clickhouse-and-the-one-trillion-row-challenge-6f10fe80ade607d9.md): ClickHouse · 2024-03-05 · Medium · 17 min read · Analytics & OLAP, Performance engineering, Cost optimization, Cloud platforms, Query engines
  ClickHouse answers Dask's One Trillion Row Challenge (min/avg/max temperature per station over 2.4TiB of Parquet in S3) in under 3 minutes for $0.56 by querying the data in place with the s3 function on an ephemeral cluster of AWS spot instances provisioned and torn down with Pulumi.
- [ClickHouse Release 23.8](https://swe.quest/articles/clickhouse-release-23-8-8db1ebb65d969c75.md): ClickHouse · 2023-09-15 · Medium · 10 min read · Analytics & OLAP, Query engines, Data pipelines, Performance engineering
  ClickHouse 23.8 makes file reads much faster by using Parquet row-group min/max statistics to skip data, answering count() from file metadata, and pruning files via the \_file virtual column without reading them.
- [Bring high-performance analytics to your lakehouse with ClickHouse and Amazon S3 Tables](https://swe.quest/articles/bring-high-performance-analytics-to-your-lakehouse-with-clickhouse-and-amazon-e72cad2c2b1429a9.md): ClickHouse · 2026-11-11 · Medium · 11 min read · Analytics & OLAP, Cloud platforms, SQL
  ClickHouse's DataLakeCatalog engine connects to Amazon S3 Tables through the Iceberg REST endpoint, exposing a table bucket as a ClickHouse database that can be queried in place and written back to, with no data copied out.
- [ClickHouse is data lake ready](https://swe.quest/articles/clickhouse-is-data-lake-ready-bebd3b2969b76478.md): ClickHouse · 2026-03-25 · Medium · 13 min read · Analytics & OLAP, Data pipelines, SQL, Query engines
  ClickHouse now queries Apache Iceberg and Delta Lake tables in place on S3, GCS and Azure, either directly or through catalogs such as AWS Glue, Unity, Polaris, BigLake, OneLake and Iceberg REST.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
