Search docs.molo17.com

    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

    gluesync-jdbc-<version>.jar, or the rolling gluesync-jdbc-latest.jar. Download it from the Query Forge setup screen in the Control Plane. To pin a version and check that the download arrived intact, see Download a pinned driver version.

    Driver class

    com.molo17.gluesync.jdbc.GluesyncDriver

    URL, Core Hub on your network

    jdbc:gluesync://<corehub-host>:8765

    URL, through Gluesync Connect

    jdbc:gluesync:https://<connect-host>/api/organizations/<orgId>/sites/<siteId>/jdbc

    User name

    Your Core Hub user name. It only identifies you in the logs.

    Password

    Your Personal API Token (gsp_…), created under Settings → Account → Personal API Tokens.

    Driver property for Connect

    connect_token set to the relay token that Connect issues for the site (gsj_…).

    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 connect_token driver property, not as a URL option.

    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=false or readOnly=false keeps 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.

    1. Copy the driver file to the Tableau drivers folder (~/Library/Tableau/Drivers on macOS, C:\Program Files\Tableau\Drivers on Windows, and the tableau_driver/jdbc folder of Tableau Server), then restart Tableau.

    2. Select Connect, To a Server, More, Other Databases (JDBC).

    3. Enter the URL, set Dialect to SQL92, and enter your user name and your token as the password.

    4. 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

    1. In DBeaver, select Database, Driver Manager, New. In DataGrip, add a Driver in Data Sources and Drivers.

    2. Set the class to com.molo17.gluesync.jdbc.GluesyncDriver, the URL template to jdbc:gluesync://{host}:{port}, and add the driver file in the libraries.

    3. Create a connection with the URL, your user name, and your token as the password. For Connect, add the connect_token driver property.

    4. 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.

    • maxScanRows and maxStatementScanBytes for a statement that must keep more rows in Query Forge.