Skip to content

ClickHouse Protocol Documentation

ClickHouse Protocol Documentation

This directory contains consolidated documentation for HeliosDB’s ClickHouse protocol support.

Quick Start

Connect to HeliosDB using any ClickHouse client:

from clickhouse_driver import Client
# Connect to HeliosDB (ClickHouse-compatible)
client = Client(
host='localhost',
port=9000,
user='default',
password='',
database='default'
)
# Execute query
result = client.execute('SELECT count() FROM events')
print(f"Total events: {result[0][0]}")

Contents

FileDescription
README.mdOverview and quick start (this file)
CONFIGURATION.mdConnection and protocol configuration
COMPATIBILITY.mdClickHouse feature compatibility
EXAMPLES.mdQuery and analytics examples

Feature Overview

Protocol Support

FeatureStatusNotes
Native Protocol (TCP)100%Port 9000
HTTP Protocol100%Port 8123
CompressionSupportedLZ4, ZSTD
SSL/TLSSupportedSecure connections

Table Engines

EngineCoverageNotes
MergeTree100%Primary engine
ReplacingMergeTree100%Upsert support
AggregatingMergeTree100%Pre-aggregation
SummingMergeTree100%Auto-summing
Distributed100%Multi-node queries

Query Features

FeatureStatusNotes
PREWHERESupportedEarly filtering
SAMPLESupportedData sampling
FINALSupportedDeduplication
Materialized ViewsSupportedAuto-aggregation
Window FunctionsSupportedAnalytics

Connection Parameters

ParameterDefaultDescription
hostlocalhostServer hostname
port9000Native protocol port
http_port8123HTTP protocol port
userdefaultUsername
password-Password
databasedefaultDatabase name
compressionlz4Compression type

Driver Compatibility

DriverVersionStatus
clickhouse-driver (Python)0.2+Full
clickhouse-go (Go)2.xFull
@clickhouse/client (Node.js)0.2+Full
ClickHouse JDBC0.4+Full

Use Cases

  • Real-time Analytics: Sub-second query response
  • Log Analysis: Full-text search + aggregation
  • Time-Series: Metrics and monitoring
  • OLAP Queries: Complex aggregations
  • Data Lakes: S3/GCS integration

Performance Highlights

OperationSpeedNotes
count()11.7M rows/ms1B rows in 85ms
GROUP BY4.1M rows/ms100K groups
Bulk Insert1.5M rows/sec100K batches

Last Updated: December 2025 Consolidation Status: Complete