Connect BI tools to Query Forge
Any client that loads a JDBC driver can query Query Forge with the Gluesync JDBC driver. This page gives the values each tool needs. The values are the same for every tool, so the sections only differ in where a tool asks for them.
What every tool needs
| Setting | Value |
|---|---|
Driver file |
|
Driver class |
|
URL, Core Hub on your network |
|
URL, through Gluesync Connect |
|
User name |
Your Core Hub user name. It only identifies you in the logs. |
Password |
Your Personal API Token ( |
Driver property for Connect |
|
|
Put the token in the Password field of the tool, never in the URL. A URL is stored in connection files, logs and browser history, and the driver refuses a Connect URL that carries a query string or user information. Give the Connect relay token as the |
Through Connect, the token must carry the gluesync.jdbc_gateway permission, a non-empty pipeline or agent scope and an expiry within 90 days. See Query Forge through the relay.
What Query Forge answers to a tool
A tool discovers your data with the standard JDBC metadata calls, and Query Forge answers them from the tables of the agents your token may read.
-
Each SQL-capable agent is a schema, and each table behind it a table of type
TABLE. A tool that lists only views shows nothing. -
Primary keys are reported to the Gluesync driver, for tools that use them to build a model.
-
The connection is read-only. A tool that sets
autoCommit=falseorreadOnly=falsekeeps working: Query Forge ignores the settings. -
Prepared statements and bound parameters work. A condition on a parameter (
WHERE id = ?) is applied in Query Forge, so write a literal for a large table. -
A column that Query Studio masks is masked here too.
See What BI tools read from Query Forge for each metadata call.
Tableau
Tableau reaches Query Forge through its generic JDBC connector.
-
Copy the driver file to the Tableau drivers folder (
~/Library/Tableau/Driverson macOS,C:\Program Files\Tableau\Driverson Windows, and thetableau_driver/jdbcfolder of Tableau Server), then restart Tableau. -
Select Connect, To a Server, More, Other Databases (JDBC).
-
Enter the URL, set Dialect to
SQL92, and enter your user name and your token as the password. -
Select Sign In, then choose a schema and a table.
Tableau sends one query per worksheet. Prefer aggregates and filters that Query Forge can run on the source, and use an extract for a large table you scan often. See Write fast queries from BI tools.
Power BI
Power BI Desktop has no built-in JDBC source. To use Query Forge you need a JDBC bridge that loads the Gluesync driver and presents it to Power BI. Give the bridge the driver file, the driver class, the URL, your user name and your token as the password. Query Forge does not provide a bridge.
Metabase
Metabase has no generic JDBC connection either: it needs a driver plugin that wraps a JDBC driver. Copy the Gluesync driver file next to that plugin in Metabase’s plugins folder, restart Metabase, and give the plugin the driver class, the URL, your user name and your token as the password.
Apache Superset
Superset reaches JDBC drivers through a SQLAlchemy dialect that wraps them. Give that dialect the driver file, the driver class, the URL, your user name and your token as the password.
DBeaver and DataGrip
-
In DBeaver, select Database, Driver Manager, New. In DataGrip, add a Driver in Data Sources and Drivers.
-
Set the class to
com.molo17.gluesync.jdbc.GluesyncDriver, the URL template tojdbc:gluesync://{host}:{port}, and add the driver file in the libraries. -
Create a connection with the URL, your user name, and your token as the password. For Connect, add the
connect_tokendriver property. -
Select Test Connection. The test shows the driver as Gluesync JDBC driver with its version and the server as Gluesync Query Forge.
The Stop button of DBeaver and DataGrip stops a running statement on a LAN connection. See Cancel queries and set timeouts in BI tools.
Long queries and timeouts
A query that runs longer than the client waits fails in the client, not on the server. Set the connection properties that fit the tool:
-
queryTimeout, in seconds, on the connection. The Gluesync driver waits for that time plus one minute, and 10 minutes when it is not set. -
http_response_timeout, in milliseconds, to choose the client’s wait yourself. -
maxScanRowsandmaxStatementScanBytesfor a statement that must keep more rows in Query Forge.