You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by Alone <23...@qq.com> on 2018/07/02 15:56:58 UTC

how to add a new database dialect

the kylin I used is V2.4,but it does not support the use of the GBase database as a data source.I think it's because of the lack of GBase database dialects。so how to add this dialect?

回复: how to add a new database dialect

Posted by Alone <23...@qq.com>.
I see,thank you so much!


------------------ 原始邮件 ------------------
发件人: "ShaoFeng Shi"<sh...@apache.org>;
发送时间: 2018年7月3日(星期二) 上午8:12
收件人: "dev"<de...@kylin.apache.org>;

主题: Re: how to add a new database dialect



Hi Alone,

I think that is easy to add a new type of JDBC data source. You can follow
such steps:

1) add the dialect in
source-hive/src/main/java/org/apache/kylin/source/jdbc/JdbcDialect.java
2) implement a new IJdbcMetadata if GBase's metadata fetching is different
with others and then register it in JdbcMetadataFactory
3) you may need to customize the SQL for creating/dropping table in
JdbcExplorer for GBase

Kaige, Shaoxiong, and other developers can comment if missing something. We
can further abstract the interface and make it as pluggable, I think this
task is in the plan. Please take a try and let us know if you see the
problem.


2018-07-02 23:56 GMT+08:00 Alone <23...@qq.com>:

> the kylin I used is V2.4,but it does not support the use of the GBase
> database as a data source.I think it's because of the lack of GBase
> database dialects。so how to add this dialect?




-- 
Best regards,

Shaofeng Shi 史少锋

Re: how to add a new database dialect

Posted by ShaoFeng Shi <sh...@apache.org>.
Hi Alone,

I think that is easy to add a new type of JDBC data source. You can follow
such steps:

1) add the dialect in
source-hive/src/main/java/org/apache/kylin/source/jdbc/JdbcDialect.java
2) implement a new IJdbcMetadata if GBase's metadata fetching is different
with others and then register it in JdbcMetadataFactory
3) you may need to customize the SQL for creating/dropping table in
JdbcExplorer for GBase

Kaige, Shaoxiong, and other developers can comment if missing something. We
can further abstract the interface and make it as pluggable, I think this
task is in the plan. Please take a try and let us know if you see the
problem.


2018-07-02 23:56 GMT+08:00 Alone <23...@qq.com>:

> the kylin I used is V2.4,but it does not support the use of the GBase
> database as a data source.I think it's because of the lack of GBase
> database dialects。so how to add this dialect?




-- 
Best regards,

Shaofeng Shi 史少锋