Run a simple SELECT on system.licenses to read ClickHouse’s Apache-2.0 license text from inside the database.
ClickHouse is distributed under the permissive Apache License 2.0. You can read the full text directly from the server without leaving your SQL editor.
Query the built-in system.licenses table. It stores every license bundled with the binary—including Apache-2.0—so you always have the authoritative copy.
SELECT *
FROM system.licenses
WHERE name = 'Apache-2.0';
Yes. The text column contains the entire license; use LIKE or a full-text search engine to locate clauses you care about.
SELECT line_number, line
FROM system.licenses
ARRAY JOIN splitByChar('\n', text) AS line
WHERE line ILIKE '%warranty%';
Keeping the license file inside ClickHouse guarantees that every container, replica, or CI environment ships with the correct legal notice—critical for audits and compliance reports.
Automate a nightly job that exports the Apache-2.0 text to your documentation repository. Store the query in Galaxy Collections so teammates can endorse it as the canonical source.
Avoid assuming ClickHouse is GPL; its Apache-2.0 terms allow commercial redistribution. Don’t forget to include NOTICE files when re-packaging the server.
Yes. Apache-2.0 allows commercial redistribution provided you keep the license and NOTICE files intact.
It resides in the default system database and is populated at build time, so every ClickHouse instance carries its own license data.
You may distribute modified binaries under any terms, but you must still provide the Apache-2.0 license and retain copyright notices.