Getting Started
How to enable Data Sharing and query the ClickHouse warehouse. Already connected? See the available data.
Table of contents
Scopes
Permissions follow Pennylane
Credentials mirror the user’s rights in Pennylane. An administrator, internal accountant, or accountant sees the companies they can open in the product. Firm administrators see the companies of their firm, subject to the database they query.
What you can query depends on the database:
pennylane: reads. Live rows. Default database.etl: the same tables, plusdeleted_atandsynchronized_at, for incremental loads.practice_management: the firm portfolio. Identification, timesheets, and mission invoice lines. Not granted to every user.
A query returns the same columns for every user. The rows are limited to the companies that user can access.
Important
Data Sharing is included in some plans only. Plans.
Authenticating
The Pennylane Data Sharing screen is not set up for this warehouse. Use the values below. They are not shown in the product.
- Server
datasharing.pennylane.com- Port
443(HTTPS)- Database
pennylaneby default. Alsoetlandpractice_management.- Username
u_<id>. Permissions are attached to this user.- Password
- The password of that Data Sharing user.
Do not share the password.
🔒 The password is random and stored only as a hash. Do not share it.
Data availability
After the user is created, credentials can take a few hours to propagate. That delay is on the account, not on the tables. Table data is available within 2 hours of the change in Pennylane. That is the freshness SLA.
Connection options
The warehouse speaks the ClickHouse HTTP interface on port 443. The native ClickHouse TCP protocol is not accepted. Client snippets are on the connection page.
Business intelligence tools
Use a connector that speaks ClickHouse over HTTPS, not the Redshift connector.
ETL tools
Incremental loads should use the etl database. It keeps deleted rows (deleted_at) and a row version timestamp (synchronized_at). The pennylane database only contains live rows.
curl, JDBC, Python
Use an HTTP client on port 443. clickhouse-client will not connect. See how to connect.
⚠️ HTTP only
The native client returns code 102. A database name in the URL path returns HTTP 400. Quotas are under limitations.
Quotas
Parameter names, caps, and error codes are on the limitations page. Every query on a table that has company_id must filter company_id. Select only the columns you need.
☝️ A word from the legal team
Do not use Data Sharing in a way that is abusive, fraudulent, or against the law.
Databases
Tables are grouped in databases. Access is granted per database. The tables listed for a database are the ones you can query, when you can open that database. Row contents still follow your Pennylane permissions.
Documentation on this site is generated from the model contracts. A doc change ships with, or just before, the data change.
Query performance
Every query on a table that has company_id must filter company_id. That column is the first column of the sorting key. Without it, ClickHouse reads the whole table.
Read a fleet one company at a time, or in batches of company_id. Do not run one query with no company filter.
SELECT id, date, debit, credit
FROM pennylane.general_ledger
WHERE company_id = 123456
AND date >= '2026-01-01'
SELECT id, date, debit, credit
FROM pennylane.analytical_ledger
WHERE company_id IN (123456, 123457, 123458)
AND date >= '2026-01-01'
Each table page lists the sorting key, in order, and the secondary index when one exists. The date index on the ledger helps a little after company_id. It does not replace it.
On companies and companies_identification, the key is id.
Do not SELECT *. List the columns you need.