activepivot-server-sql-bridge. Clients authenticate with an Atoti username and password.
The Atoti Tableau Adapter connects Tableau to Atoti through the SQL
endpoint. See its how-to guide for the Tableau-specific
connection steps. Power BI also connects to Atoti through the SQL endpoint.
Which SQL is supported?
The SQL endpoint speaks the PostgreSQL wire protocol, so any PostgreSQL client can connect to it. However, only the SQL that Tableau and Power BI generate is supported. Queries written by hand or sent by other tools might not be supported.How to enable the SQL endpoint
This feature requires a license that enables the
bi-adapter component.pom.xml file of an Atoti project:
atoti.server.sql-bridge.enabled to true in the Atoti application’s configuration.
This property defaults to false.
The SQL endpoint opens a PostgreSQL-protocol listener and two
REST endpoints that generate the .tds and .pbit files. It stays off by default because those need
the application’s security configuration to be reviewed for them.
How to choose the listening port
By default, the server listens for SQL queries on port 5432. This port number can be changed by setting theatoti.server.sql-bridge.port property of the Atoti application.
Only one process on a machine can hold a given port. Port 5432 is unavailable if the machine also
runs a real PostgreSQL, or a second Atoti server. Set the property to another fixed port in that case,
for example 5433.
A deployment should use a fixed port. The generated .tds and .pbit files embed that port, and so
does a client configured by hand. None of them need to change across restarts.
Set the property to 0 instead for a test. This also helps on a machine where no single fixed port
can be guaranteed free. The operating system then picks a free port at startup, but a different one
at every restart. The .tds and .pbit files must be regenerated, and any hand-configured client
reconfigured, after each restart.
Configuration reference
The SQL endpoint is configured through the following properties of the Atoti application:Monitoring
The Atoti BI adapter relies on BI tools sending SQL queries to Atoti Server: a component called the SQL Bridge translates each query and forwards it to the cube. That SQL layer is an implementation detail, but it shows up in logs and traces.Logging
Two loggers are available:atoti.server.query.sqlbridge: logs the query processing. This includes the logical and physical query plans built from the incoming SQL. It also includes the cube, levels, and measures targeted by each underlying query.atoti.server.query.sqlbridge.protocol: logs the protocol exchange, including received and sent messages, session lifecycle, and authentication. It also logs any error encountered while handling a query.
Tracing
Tracing is used to provide insight into the SQL queries received from BI tools. Atoti Server tracing must be enabled and configured before SQL query traces become available. See Tracing for setup instructions. Every query received is wrapped in aSql Bridge query span, tagged with:
sql-query: the raw SQL query text sent by the BI tool.sql-query-params: the parameters bound to the query, when it is a parameterized (prepared) query.