Forum Discussion

sisense-nuna's avatar
sisense-nuna
Cloud Apps
02-27-2023

Connecting to Clickhouse

I was recently speaking with Kat about certified connectors and related status for those connectors – specifically related to Clickhouse, which is listed as a Certified data connector for Sisense.

Are there any Sisense customers out there that are using Clickhouse successfully with Sisense? To us, "successfully" would at a minimum include:

  1. Being able to connect using a Live Connection for interactive query and aggregation via Sisense Notebooks
  2. Being able to load data from Clickhouse into Elasticubes

Thanks all!

11 Replies

Replies have been turned off for this discussion
  • Learner's avatar
    Learner
    Data Storage

    Hello NUNA,
    I want to connect the Sisense with Clickhouse DB. can you please share the steps or any detail link ? 
    Thanks

  • Clickhouse supports both MySql and PostgreSql wire protocols. Setting these up on the Clickhouse side allows you to use the MySql or Postgres connectors to connect to Clickhouse. As Sisense can go live to Postgres, you can also go live to Clickhouse using the Postgres connector.

    • sisense-nuna's avatar
      sisense-nuna
      Cloud Apps

      MySQL worked for you? We get an error - "text": "{\"error\":{\"moreInfo\":{\"why\":{\"name\":\"InvalidParametersException\",\"message\":\"InvalidParametersException\",\"errorCode\":8,\"errorMessage\":\"Code: 47. DB::Exception: Missing columns: 'TABLE_COMMENT' while processing query: 'SELECT TABLE_SCHEMA AS TABLE_CAT, NULL AS TABLE_SCHEM, TABLE_NAME, multiIf(TABLE_TYPE = 'BASE TABLE', multiIf((TABLE_SCHEMA = 'mysql') OR (TABLE_SCHEMA = 'performance_schema'), 'SYSTEM TABLE', 'TABLE'), TABLE_TYPE = 'TEMPORARY', 'LOCAL_TEMPORARY', TABLE_TYPE) AS TABLE_TYPE, TABLE_COMMENT AS REMARKS, NULL AS TYPE_CAT, NULL AS TYPE_SCHEM, NULL AS TYPE_NAME, NULL AS SELF_REFERENCING_COL_NAME, NULL AS REF_GENERATION FROM (SELECT \",\"wrongParameter\":null,\"dbSourceErrorMessage\":null,\"trace\":null}},\"code\":22002,\"message\":\"Cannot establish connection with provided parameters.\",\"status\":400,\"httpMessage\":\"Bad Request\"}}"

    • sisense-nuna's avatar
      sisense-nuna
      Cloud Apps

      And if we try from postgres we get "ERROR: ClickHouse doesn't support extended query mechanism"

    • sisense-nuna's avatar
      sisense-nuna
      Cloud Apps

      And if I set "preferQueryMode=simple" it then complains that pg_database doesnt exist.

  • Learner's avatar
    Learner
    Data Storage

    Hello,
    I am able to connect with Clickhouse and create a dashboard on the this data. 
    Simple Steps : 
    1. Go to Data Sources.
    2. Click on Other JDBC from the list. 
    3.  Then fill the information :
          jdbc:clickhouse://"IP of Clickhouse DB":8123/"DatabaseName"
         <user-name>User Name</user-name>
         <password>YourPassword</password>
         com.clickhouse.jdbc.ClickHouseDriver
    after this you will able to connect with Clickhouse.

     

  • Hello,

    Many people try to establish Live Connections for interactive queries and aggregations through Sisense Notebooks. Additionally, these users have seamlessly loaded data from Clickhouse into Elasticubes, meeting the specified criteria for success. Recently I am completed Salesforce Admin Certification and now I am working on a project . I faced same query during my certification