Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

ClickHouse 6 min read Announcement mediumAdept

Java Client… the SEQUEL?!

ClickHouse is rewriting its Java client as client-v2, an early alpha shipped in version 0.6.1+, to fix V1's heavy boilerplate, error-prone manual RowBinary serialization and unsafe defaults such as response object reuse. The new API uses a builder for configuration. Users register POJO classes against a table schema so the client generates serializers and picks the most efficient insert format. Query results are immutable and lazily deserialized, returned as GenericRecord lists or iterable Records with response metadata. V1 will get security and bug fixes through the end of 2025, and feedback is requested via GitHub issues labeled v2-feedback.

Related posts

  • Getting Data Into ClickHouse - Part 2 - A JSON detour

    ClickHouse mediumAdept

    ClickHouse's experimental JSON (Object('json')) type, introduced around 22.8, stores semi-structured rows by automatically inferring sub-columns and representing them internally as Tuples with minimal-width numeric types. It is demonstrated on the 28M-row Hacker News dataset via the JSONAsObject and JSONAsString formats. Because JSON sub-columns cannot serve as primary keys or carry codecs, the recommended pattern is a hybrid schema: declare stable fields like time and type explicitly so they can be used in ORDER BY, and keep the rest in a JSON column. That change cut a sample query from 2.6s to 0.74s. Inferred types widen transparently as new values arrive, but a single string value can silently convert a numeric column to String, so clean the data or declare critical columns explicitly.

  • ClickHouse.Driver 1.0.0: The Official .NET Client Hits Stable

    ClickHouse mediumAdept

    ClickHouse.Driver 1.0.0 is the first stable release of the official .NET client for ClickHouse, committing to a semver-stable public API. It introduces a thread-safe, singleton-friendly ClickHouseClient that replaces most ADO.NET usage and the deprecated ClickHouseBulkCopy, and adds parameter type extraction from SQL, JWT/roles/custom headers, POCO serialization to JSON columns, mid-stream exception detection and QBit vector support. Breaking changes matter for upgrades: .NET Framework/Standard support is dropped, timezone-less DateTime columns now return Kind=Unspecified, and JSON writes default to string mode parsed server-side, which can change inferred types (e.g. Int32 to Int64).

  • ClickHouse as a streaming HTTP API

    ClickHouse mediumAdept

    ClickHouse 26.8 can serve a parameterized HTTP API directly, removing the thin API layer often placed in front of it. The walkthrough uses the UK property prices dataset to build endpoints with `CREATE HANDLER`. Handlers support typed query-string parameters and regex-captured path parameters, and a restricted API user supplies a JSONEachRow default format and a per-user row `limit`. Handler queries are checked only for syntax at creation, so missing tables or columns surface at call time. An application layer is still needed for business logic, orchestration or custom validation.

  • ClickHouse Newsletter April 2022: JSON, JSON, JSON

    ClickHouse mediumAdept

    ClickHouse 22.3 LTS adds an experimental JSON data type that stores semi-structured documents in a single column, with dynamic subcolumns underneath, so you no longer need hand-built schemas of arrays and materialized columns. The worked examples cover querying nested fields, loading files with the JSONAsString format, and pulling a timestamp into its own column so MergeTree has a usable sorting key. They also show how to display field names with output_format_json_named_tuples_as_objects. The release also ships ARM Docker images, fully tested S3 disk storage (with known performance issues), and a Hive table function, and ClickHouse Cloud's serverless waitlist is now open.

  • Collecting Semi-structured Data from Kafka Topics Using ClickHouse Kafka Engine

    ClickHouse mediumAdept

    Superology, a sports-betting product company, ingests clickstream and other customer quantitative data into ClickHouse straight from Kafka using the Kafka table engine with the Protobuf input format. Events are batched into a single proto message that uses oneof fields for varying event types. Schemas evolve only by adding fields, which keeps them backward compatible; origin table columns are added with ALTER TABLE, and dropped fields are deprecated rather than removed. Materialized views filter and transform the data for funnels, segmentation and dashboards, tiered storage moves older data to S3, and built-in statistical functions such as welchTTest and mannWhitneyUTest support A/B and Bayesian experimentation.

The quest for software engineering knowledge.

Look:
Layout: