Skip to content

feat(clickhouse-driver): support application name configuration#11017

Open
killzoner wants to merge 1 commit into
cube-js:masterfrom
killzoner:clickhouse-driver-application
Open

feat(clickhouse-driver): support application name configuration#11017
killzoner wants to merge 1 commit into
cube-js:masterfrom
killzoner:clickhouse-driver-application

Conversation

@killzoner
Copy link
Copy Markdown

@killzoner killzoner commented Jun 5, 2026

Check List

  • Tests have been run in packages where changes have been made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Description of Changes Made

Adds an application option to the ClickHouse driver, configurable via CUBEJS_DB_CLICKHOUSE_APPLICATION. It is passed through to @clickhouse/client's existing application config, which prepends it to the HTTP User-Agent, making it visible in system.query_log.http_user_agent.

This allows attributing queries to a specific Cube deployment when several share the same ClickHouse user, without creating separate database users. Optional, defaults to unset (current behavior unchanged).

Docs are updated in both the legacy (/docs) and new Mintlify (/docs-mintlify) sites.

@github-actions github-actions Bot added driver:clickhouse Issues related to the ClickHouse driver javascript Pull requests that update Javascript code data source driver pr:community Contribution from Cube.js community members. labels Jun 5, 2026
@killzoner killzoner marked this pull request as ready for review June 5, 2026 10:25
@killzoner killzoner requested review from a team as code owners June 5, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data source driver driver:clickhouse Issues related to the ClickHouse driver javascript Pull requests that update Javascript code pr:community Contribution from Cube.js community members.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant