Data Connection to Apache Kylin

  • Last update:October 17, 2025
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Application Scenario

    This document introduces how to connect to the Apache Kylin database.

    Preparation

    Version/Driver

    Download the driver package and upload it to FineBI. For details, see the "Uploading the Database Driver" section in Driver Management.

    Note: To upload the driver package, you need to decompress the Log JAR.rar file below to obtain the log JAR file and upload it to FineBI together with the driver package.

    Supported Database Version
    Driver PackageLog JAR

    1.5.0 and 2.2

    kylin-jdbc-1.6.0 .jar

    日志jar.rar

    Connection Information Collection

    Before connecting FineBI to the database, you need to collect the following information:

    • IP address and port number of the database server

    • Database name

    • Username and password of the database

    • Schema of the database to be connected

    Connection Procedure

    1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, click Create, and select Data Connection, as shown in the following figure.

    iconNote:
    If you are not the admin, you can configure data connections only after the admin assigns you the permission on the data connection module. For details, see Data Connection Permission Overview.

    第一张.png

    2. Find the Apache Kylin database, as shown in the following figure.

    2.png

    3. Select Custom from the Driver drop-down list, select the driver uploaded in the "Version/Driver" section, and enter the connection information collected in the "Connection Information Collection" section.

    Click Click to Connect Database, and select the database schema (Schema is available after successful connection.), as shown in the following figure.

    3.png

    4. Click Test Connection. If the connection is successful, click Save, as shown in the following figure.

    4.png

    Adding Database Tables to FineBI

    Two methods are available to add database tables to FineBI.

    最后一张.png

    Notes

    Time Zone Discrepancy Issue

    Regardless of the configured time zone, Kylin enforces GMT (UTC+0) timestamp conversion when outputting data, resulting in a consistent 8-hour offset for timezone-aware systems. When you query data in the Kylin database, if the result is 2018-01-01, the actual data retrieved from the database is 2017-12-31 due to time zone discrepancy.

    Therefore, you need to manually add an 8-hour offset in SQL statements.

    Data Table with Direct Connection Attributes

    Since some functions are not supported by the Kylin database, data tables with direct connection attributes are subject to the following restrictions.

    1. When you retrieve data tables with direct connection attributes from the Kylin database, note that the following functions are not supported due to inherent limitations of the Kylin database.

    CHAR   - Returning the Character Specified by a Number

    CODE   - Returning a Numeric Code for the First Character in a Text String

    REPEAT   - Repeating a Text a Specified Number of Times

    RANDBETWEEN - Returning a Random Integer between Two Values

    INDEXOF   - Returning the Character at a Specified Position in the Text


    2. You cannot perform Left Join or Right Join operations on DATE and TIMESTAMP fields from data tables with direct connection attributes.

    附件列表


    主题: Data Center
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy