[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17139008#comment-17139008
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus merged pull request #1272:
URL: https://github.com/apache/kylin/pull/1272


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
> Fix For: v3.1.0
>
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17139006#comment-17139006
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus edited a comment on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   # Test Report
   
   ### Root cause
   
   From the documentation of pg, we know that when identifier is quoted, 
identifier is case sensitive, but Kylin use all upper-case, which make quoted 
identifier not identifiable by pg. 
   
   At my patch, I disable all quote switch in `postgresql.xml`,  so we cannot 
support reserved word as identifier, which is rare.
   
   ### Test Result
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   
   
   
![image](https://user-images.githubusercontent.com/14030549/84975764-dc54ba00-b158-11ea-88f0-5a9b39003c99.png)
   
   
   - Build Success 
   
![image](https://user-images.githubusercontent.com/14030549/84973189-1622c200-b153-11ea-90e1-beafd6b1c517.png)
   
   - kylin.log
   ```sh
   2020-06-18 11:41:50,986 DEBUG [http-bio-8005-exec-4] 
extensible.JdbcHiveInputBase:129 : sqoop cmd: --connect 
"jdbc:postgresql://10.1.3.94:5432/kylin_test_db" --driver 
"org.postgresql.Driver" --username "postgres" --password "password" --query 
"SELECT FILM_PLAY.AUDIENCE_ID as FILM_PLAY_AUDIENCE_ID ,FILM_PLAY.FILM_ID as 
FILM_PLAY_FILM_ID ,FILM_PLAY.WATCH_TIME ,FILM_PLAY.PAYMENT as FILM_PLAY_PAYMENT 
 FROM SC1.FILM_PLAY as FILM_PLAY LEFT JOIN SC2.AUDIENCE as AUDIENCE ON 
FILM_PLAY.AUDIENCE_ID = AUDIENCE.AUDIENCE_ID LEFT JOIN PUBLIC.FILM as FILM ON 
FILM_PLAY.FILM_ID = FILM.FILM_ID WHERE 1=1 AND (FILM_PLAY.WATCH_TIME >= 
'2012-01-01 00:00:00' AND FILM_PLAY.WATCH_TIME < '2012-12-01 00:00:00')  AND 
\$CONDITIONS" --target-dir 
"hdfs://cdh-master:8020/LACUS/LACUS-tmp/kylin-ef6e4fd7-f72d-f7a0-fdca-b32bb0153493/kylin_intermediate_filmanalysis_5b0b0b6a_0ad3_14fd_30ed_27cf74504666"
 --split-by "FILM_PLAY.WATCH_TIME" --boundary-query "SELECT 
min(FILM_PLAY.WATCH_TIME), max(FILM_PLAY.WATCH_TIME) FROM SC1.FILM_PLAY as 
FILM_PLAY WHERE FILM_PLAY.WATCH_TIME >= '2012-01-01 00:00:00' AND 
FILM_PLAY.WATCH_TIME < '2012-12-01 00:00:00'" --null-string '' 
--fields-terminated-by '|' --num-mappers 4
   2020-06-18 11:41:51,046 DEBUG [http-bio-8005-exec-4] 
hbase.HBaseConnection:181 : Using the working dir FS for HBase: 
hdfs://cdh-master:8020
   2020-06-18 11:41:51,049 DEBUG [pool-6-thread-1] cachesync.Broadcaster:119 : 
Servers in the cluster: [localhost:8005]
   2020-06-18 11:41:51,050 DEBUG [pool-6-thread-1] cachesync.Broadcaster:129 : 
Announcing new broadcast to all: BroadcastEvent{entity=execute_output, 
event=create, cacheKey=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493}
   2020-06-18 11:41:51,053 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:267 : Broadcasting CREATE, execute_output, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:41:51,054 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:301 : Done broadcasting CREATE, execute_output, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:41:51,066 DEBUG [pool-6-thread-1] cachesync.Broadcaster:119 : 
Servers in the cluster: [localhost:8005]
   2020-06-18 11:41:51,066 DEBUG [pool-6-thread-1] cachesync.Broadcaster:129 : 
Announcing new broadcast to all: BroadcastEvent{entity=execute, event=create, 
cacheKey=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493}
   2020-06-18 11:41:51,069 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:267 : Broadcasting CREATE, execute, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:41:51,070 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:301 : Done broadcasting CREATE, execute, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:42:05,813 INFO  [FetcherRunner 1308001235-46] 
threadpool.FetcherRunner:65 : 
CubingJob{id=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493, name=BUILD CUBE - 
FilmAnalysis - 2012010100_2012120100 - GMT+08:00 2020-06-18 11:41:50, 
state=READY} prepare to schedule and its priority is 20
   2020-06-18 11:42:05,813 INFO  [FetcherRunner 1308001235-46] 
threadpool.FetcherRunner:69 : 
CubingJob{id=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493, name=BUILD CUBE - 
FilmAnalysis - 2012010100_2012120100 - GMT+08:00 2020-06-18 11:41:50, 
state=READY} scheduled
   2020-06-18 11:42:05,813 INFO  [FetcherRunner 1308001235-46] 
threadpool.DefaultFetcherRunner:115 : Job Fetcher: 0 should running, 1 actual 
running, 0 stopped, 1 ready, 4 already succeed, 0 error, 7 discarded, 0 others
   2020-06-18 11:42:05,813 INFO  [Scheduler 1125220712 Job 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493-276] execution.AbstractExecutable:161 : 
Executing AbstractExecutable (BUILD CUBE - FilmAnalysis - 
2012010100_2012120100 - GMT+08:00 2020-06-18 11:41:50)
   2020-06-18 11:42:05,816 INFO  [Scheduler 1125220712 Job 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493-276] 

[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17139005#comment-17139005
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus edited a comment on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   # Test Report
   
   ### Root cause
   
   From the documentation of pg, we know that when identifier is quoted, 
identifier is case sensitive, but Kylin use all upper-case, which make quoted 
identifier not identifiable by pg. 
   
   At my patch, I disable all quote switch in `postgresql.xml`,  so we cannot 
support reserved word as identifier, which is rare.
   
   ### Test Result
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   
   
   
![image](https://user-images.githubusercontent.com/14030549/84975764-dc54ba00-b158-11ea-88f0-5a9b39003c99.png)
   
   
   - Build Success 
   
![image](https://user-images.githubusercontent.com/14030549/84973189-1622c200-b153-11ea-90e1-beafd6b1c517.png)
   
   ```sh
   2020-06-18 11:41:50,986 DEBUG [http-bio-8005-exec-4] 
extensible.JdbcHiveInputBase:129 : sqoop cmd: --connect 
"jdbc:postgresql://10.1.3.94:5432/kylin_test_db" --driver 
"org.postgresql.Driver" --username "postgres" --password "password" --query 
"SELECT FILM_PLAY.AUDIENCE_ID as FILM_PLAY_AUDIENCE_ID ,FILM_PLAY.FILM_ID as 
FILM_PLAY_FILM_ID ,FILM_PLAY.WATCH_TIME ,FILM_PLAY.PAYMENT as FILM_PLAY_PAYMENT 
 FROM SC1.FILM_PLAY as FILM_PLAY LEFT JOIN SC2.AUDIENCE as AUDIENCE ON 
FILM_PLAY.AUDIENCE_ID = AUDIENCE.AUDIENCE_ID LEFT JOIN PUBLIC.FILM as FILM ON 
FILM_PLAY.FILM_ID = FILM.FILM_ID WHERE 1=1 AND (FILM_PLAY.WATCH_TIME >= 
'2012-01-01 00:00:00' AND FILM_PLAY.WATCH_TIME < '2012-12-01 00:00:00')  AND 
\$CONDITIONS" --target-dir 
"hdfs://cdh-master:8020/LACUS/LACUS-tmp/kylin-ef6e4fd7-f72d-f7a0-fdca-b32bb0153493/kylin_intermediate_filmanalysis_5b0b0b6a_0ad3_14fd_30ed_27cf74504666"
 --split-by "FILM_PLAY.WATCH_TIME" --boundary-query "SELECT 
min(FILM_PLAY.WATCH_TIME), max(FILM_PLAY.WATCH_TIME) FROM SC1.FILM_PLAY as 
FILM_PLAY WHERE FILM_PLAY.WATCH_TIME >= '2012-01-01 00:00:00' AND 
FILM_PLAY.WATCH_TIME < '2012-12-01 00:00:00'" --null-string '' 
--fields-terminated-by '|' --num-mappers 4
   2020-06-18 11:41:51,046 DEBUG [http-bio-8005-exec-4] 
hbase.HBaseConnection:181 : Using the working dir FS for HBase: 
hdfs://cdh-master:8020
   2020-06-18 11:41:51,049 DEBUG [pool-6-thread-1] cachesync.Broadcaster:119 : 
Servers in the cluster: [localhost:8005]
   2020-06-18 11:41:51,050 DEBUG [pool-6-thread-1] cachesync.Broadcaster:129 : 
Announcing new broadcast to all: BroadcastEvent{entity=execute_output, 
event=create, cacheKey=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493}
   2020-06-18 11:41:51,053 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:267 : Broadcasting CREATE, execute_output, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:41:51,054 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:301 : Done broadcasting CREATE, execute_output, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:41:51,066 DEBUG [pool-6-thread-1] cachesync.Broadcaster:119 : 
Servers in the cluster: [localhost:8005]
   2020-06-18 11:41:51,066 DEBUG [pool-6-thread-1] cachesync.Broadcaster:129 : 
Announcing new broadcast to all: BroadcastEvent{entity=execute, event=create, 
cacheKey=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493}
   2020-06-18 11:41:51,069 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:267 : Broadcasting CREATE, execute, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:41:51,070 DEBUG [http-bio-8005-exec-3] 
cachesync.Broadcaster:301 : Done broadcasting CREATE, execute, 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493
   2020-06-18 11:42:05,813 INFO  [FetcherRunner 1308001235-46] 
threadpool.FetcherRunner:65 : 
CubingJob{id=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493, name=BUILD CUBE - 
FilmAnalysis - 2012010100_2012120100 - GMT+08:00 2020-06-18 11:41:50, 
state=READY} prepare to schedule and its priority is 20
   2020-06-18 11:42:05,813 INFO  [FetcherRunner 1308001235-46] 
threadpool.FetcherRunner:69 : 
CubingJob{id=ef6e4fd7-f72d-f7a0-fdca-b32bb0153493, name=BUILD CUBE - 
FilmAnalysis - 2012010100_2012120100 - GMT+08:00 2020-06-18 11:41:50, 
state=READY} scheduled
   2020-06-18 11:42:05,813 INFO  [FetcherRunner 1308001235-46] 
threadpool.DefaultFetcherRunner:115 : Job Fetcher: 0 should running, 1 actual 
running, 0 stopped, 1 ready, 4 already succeed, 0 error, 7 discarded, 0 others
   2020-06-18 11:42:05,813 INFO  [Scheduler 1125220712 Job 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493-276] execution.AbstractExecutable:161 : 
Executing AbstractExecutable (BUILD CUBE - FilmAnalysis - 
2012010100_2012120100 - GMT+08:00 2020-06-18 11:41:50)
   2020-06-18 11:42:05,816 INFO  [Scheduler 1125220712 Job 
ef6e4fd7-f72d-f7a0-fdca-b32bb0153493-276] 

[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138978#comment-17138978
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus edited a comment on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   # Test Report
   
   ### Root cause
   
   From the documentation of pg, we know that when identifier is quoted, 
identifier is case sensitive, but Kylin use all upper-case, which make quoted 
identifier not identifiable by pg. 
   
   At my patch, I disable all quote switch in `postgresql.xml`,  so we cannot 
support reserved word as identifier, which is rare.
   
   ### Test Result
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   
   
   - Build Success 
   
![image](https://user-images.githubusercontent.com/14030549/84973189-1622c200-b153-11ea-90e1-beafd6b1c517.png)
   
   
   
![image](https://user-images.githubusercontent.com/14030549/84974029-0906d280-b155-11ea-99e2-fb58921c00bd.png)
   
   
   - Pushdown error
   
   ```sh
   
   2020-06-18 10:53:12,241 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] service.QueryService:679 : The 
corrected query: select * from (select film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5
   2020-06-18 10:53:12,301 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:63 : Find 
candidates by table SC1.FILM_PLAY and project=PgTestPrj : 
CUBE[name=FilmCube_clone_clone]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveBlackoutRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: 
[CUBE[name=FilmCube_clone_clone]]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] cube.CubeCapabilityChecker:119 : 
Exclude cube FilmCube_clone_clone because unmatched aggregations: [FunctionDesc 
[expression=COUNT_DISTINCT, parameter=SC1.FILM_PLAY.PAYMENT, returnType=null]]
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveUncapableRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: []
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] rules.RealizationSortRule:40 :
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class org.apache.kylin.query.routing.rules.RealizationSortRule, 
realizations before: [], realizations after: []
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.RealizationChooser:92 : Give 
up on model DataModelDesc [name=FilmModel] because no suitable realization is 
found
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] util.PushDownExecutor:71 : Query 
failed to utilize pre-calculation, routing to other engines
   java.sql.SQLException: Error while executing SQL "select * from (select 
film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5": No realization found for OLAPContext, 
CUBE_UNMATCHED_AGGREGATION[FunctionDesc [expression=COUNT_DISTINCT, 
parameter=1_6906aea2:SC1.FILM_PLAY.PAYMENT, returnType=null]], CUBE_NOT_READY, 
CUBE_NOT_READY, rel#83:OLAPTableScan.OLAP.[](table=[SC1, 
FILM_PLAY],ctx=,fields=[0, 1, 2, 3, 4, 5])
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at 
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:163)
at 
org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:227)
at 
org.apache.kylin.rest.service.QueryService.executeRequest(QueryService.java:1003)
at 
org.apache.kylin.rest.service.QueryService.queryWithSqlMassage(QueryService.java:699)
at 
org.apache.kylin.rest.service.QueryService.query(QueryService.java:221)
at 
org.apache.kylin.rest.service.QueryService.queryAndUpdateCache(QueryService.java:507)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:467)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:398)
at 
org.apache.kylin.rest.controller.QueryController.query(QueryController.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at 

[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138976#comment-17138976
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus edited a comment on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   # Test Report
   
   ### Root cause
   
   From the documentation of pg, we know that when identifier is quoted, 
identifier is case sensitive, but Kylin use all upper-case, which make quoted 
identifier not identifiable by pg. 
   
   At my patch, I disable all quote switch in `postgresql.xml`,  so we cannot 
support reserved word as identifier, which is rare.
   
   ### Test Result
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   
   
   - Build Success
   
![image](https://user-images.githubusercontent.com/14030549/84973189-1622c200-b153-11ea-90e1-beafd6b1c517.png)
   
   - Pushdown error
   
   ```sh
   
   2020-06-18 10:53:12,241 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] service.QueryService:679 : The 
corrected query: select * from (select film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5
   2020-06-18 10:53:12,301 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:63 : Find 
candidates by table SC1.FILM_PLAY and project=PgTestPrj : 
CUBE[name=FilmCube_clone_clone]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveBlackoutRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: 
[CUBE[name=FilmCube_clone_clone]]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] cube.CubeCapabilityChecker:119 : 
Exclude cube FilmCube_clone_clone because unmatched aggregations: [FunctionDesc 
[expression=COUNT_DISTINCT, parameter=SC1.FILM_PLAY.PAYMENT, returnType=null]]
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveUncapableRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: []
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] rules.RealizationSortRule:40 :
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class org.apache.kylin.query.routing.rules.RealizationSortRule, 
realizations before: [], realizations after: []
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.RealizationChooser:92 : Give 
up on model DataModelDesc [name=FilmModel] because no suitable realization is 
found
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] util.PushDownExecutor:71 : Query 
failed to utilize pre-calculation, routing to other engines
   java.sql.SQLException: Error while executing SQL "select * from (select 
film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5": No realization found for OLAPContext, 
CUBE_UNMATCHED_AGGREGATION[FunctionDesc [expression=COUNT_DISTINCT, 
parameter=1_6906aea2:SC1.FILM_PLAY.PAYMENT, returnType=null]], CUBE_NOT_READY, 
CUBE_NOT_READY, rel#83:OLAPTableScan.OLAP.[](table=[SC1, 
FILM_PLAY],ctx=,fields=[0, 1, 2, 3, 4, 5])
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at 
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:163)
at 
org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:227)
at 
org.apache.kylin.rest.service.QueryService.executeRequest(QueryService.java:1003)
at 
org.apache.kylin.rest.service.QueryService.queryWithSqlMassage(QueryService.java:699)
at 
org.apache.kylin.rest.service.QueryService.query(QueryService.java:221)
at 
org.apache.kylin.rest.service.QueryService.queryAndUpdateCache(QueryService.java:507)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:467)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:398)
at 
org.apache.kylin.rest.controller.QueryController.query(QueryController.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 

[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138975#comment-17138975
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus edited a comment on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   # Test Report
   
   ### Root cause
   
   From the documentation of pg, we know that when identifier is quoted, 
identifier is case sensitive, but Kylin use all upper-case, which make quoted 
identifier not identifiable by pg. 
   
   At my patch, I disable all quote switch in postgresql.xml,  so we cannot 
support reserved word as identifier, which is rare.
   
   ### Test Result
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   
   
   - Build Success
   
![image](https://user-images.githubusercontent.com/14030549/84973189-1622c200-b153-11ea-90e1-beafd6b1c517.png)
   
   - Pushdown error
   
   ```sh
   
   2020-06-18 10:53:12,241 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] service.QueryService:679 : The 
corrected query: select * from (select film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5
   2020-06-18 10:53:12,301 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:63 : Find 
candidates by table SC1.FILM_PLAY and project=PgTestPrj : 
CUBE[name=FilmCube_clone_clone]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveBlackoutRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: 
[CUBE[name=FilmCube_clone_clone]]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] cube.CubeCapabilityChecker:119 : 
Exclude cube FilmCube_clone_clone because unmatched aggregations: [FunctionDesc 
[expression=COUNT_DISTINCT, parameter=SC1.FILM_PLAY.PAYMENT, returnType=null]]
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveUncapableRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: []
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] rules.RealizationSortRule:40 :
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class org.apache.kylin.query.routing.rules.RealizationSortRule, 
realizations before: [], realizations after: []
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.RealizationChooser:92 : Give 
up on model DataModelDesc [name=FilmModel] because no suitable realization is 
found
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] util.PushDownExecutor:71 : Query 
failed to utilize pre-calculation, routing to other engines
   java.sql.SQLException: Error while executing SQL "select * from (select 
film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5": No realization found for OLAPContext, 
CUBE_UNMATCHED_AGGREGATION[FunctionDesc [expression=COUNT_DISTINCT, 
parameter=1_6906aea2:SC1.FILM_PLAY.PAYMENT, returnType=null]], CUBE_NOT_READY, 
CUBE_NOT_READY, rel#83:OLAPTableScan.OLAP.[](table=[SC1, 
FILM_PLAY],ctx=,fields=[0, 1, 2, 3, 4, 5])
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at 
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:163)
at 
org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:227)
at 
org.apache.kylin.rest.service.QueryService.executeRequest(QueryService.java:1003)
at 
org.apache.kylin.rest.service.QueryService.queryWithSqlMassage(QueryService.java:699)
at 
org.apache.kylin.rest.service.QueryService.query(QueryService.java:221)
at 
org.apache.kylin.rest.service.QueryService.queryAndUpdateCache(QueryService.java:507)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:467)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:398)
at 
org.apache.kylin.rest.controller.QueryController.query(QueryController.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 

[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138973#comment-17138973
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus edited a comment on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   ### Test Report
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   
   
   - Build Success
   
![image](https://user-images.githubusercontent.com/14030549/84973189-1622c200-b153-11ea-90e1-beafd6b1c517.png)
   
   - Pushdown error
   
   ```sh
   
   2020-06-18 10:53:12,241 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] service.QueryService:679 : The 
corrected query: select * from (select film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5
   2020-06-18 10:53:12,301 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:63 : Find 
candidates by table SC1.FILM_PLAY and project=PgTestPrj : 
CUBE[name=FilmCube_clone_clone]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveBlackoutRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: 
[CUBE[name=FilmCube_clone_clone]]
   2020-06-18 10:53:12,302 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] cube.CubeCapabilityChecker:119 : 
Exclude cube FilmCube_clone_clone because unmatched aggregations: [FunctionDesc 
[expression=COUNT_DISTINCT, parameter=SC1.FILM_PLAY.PAYMENT, returnType=null]]
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class 
org.apache.kylin.query.routing.rules.RemoveUncapableRealizationsRule, 
realizations before: [CUBE[name=FilmCube_clone_clone]], realizations after: []
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] rules.RealizationSortRule:40 :
   2020-06-18 10:53:12,303 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.QueryRouter:51 : Applying 
rule: class org.apache.kylin.query.routing.rules.RealizationSortRule, 
realizations before: [], realizations after: []
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] routing.RealizationChooser:92 : Give 
up on model DataModelDesc [name=FilmModel] because no suitable realization is 
found
   2020-06-18 10:53:12,304 INFO  [Query 
72145593-a090-2676-9574-747a5df549db-64] util.PushDownExecutor:71 : Query 
failed to utilize pre-calculation, routing to other engines
   java.sql.SQLException: Error while executing SQL "select * from (select 
film_id, count(distinct payment)
   from sc1.film_play
   group by film_id) limit 5": No realization found for OLAPContext, 
CUBE_UNMATCHED_AGGREGATION[FunctionDesc [expression=COUNT_DISTINCT, 
parameter=1_6906aea2:SC1.FILM_PLAY.PAYMENT, returnType=null]], CUBE_NOT_READY, 
CUBE_NOT_READY, rel#83:OLAPTableScan.OLAP.[](table=[SC1, 
FILM_PLAY],ctx=,fields=[0, 1, 2, 3, 4, 5])
at org.apache.calcite.avatica.Helper.createException(Helper.java:56)
at org.apache.calcite.avatica.Helper.createException(Helper.java:41)
at 
org.apache.calcite.avatica.AvaticaStatement.executeInternal(AvaticaStatement.java:163)
at 
org.apache.calcite.avatica.AvaticaStatement.executeQuery(AvaticaStatement.java:227)
at 
org.apache.kylin.rest.service.QueryService.executeRequest(QueryService.java:1003)
at 
org.apache.kylin.rest.service.QueryService.queryWithSqlMassage(QueryService.java:699)
at 
org.apache.kylin.rest.service.QueryService.query(QueryService.java:221)
at 
org.apache.kylin.rest.service.QueryService.queryAndUpdateCache(QueryService.java:507)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:467)
at 
org.apache.kylin.rest.service.QueryService.doQueryWithCache(QueryService.java:398)
at 
org.apache.kylin.rest.controller.QueryController.query(QueryController.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at 
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
at 
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
at 

[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138972#comment-17138972
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus commented on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645741145


   ### Test Report
   After applied my patch, build from pg data source is fine, but pushdown is 
still not work, because it is caused by another patch from KYLIN-4068 .
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
> Fix For: v3.1.0
>
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138969#comment-17138969
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

coveralls commented on pull request #1272:
URL: https://github.com/apache/kylin/pull/1272#issuecomment-645737742


   ## Pull Request Test Coverage Report for [Build 
6040](https://coveralls.io/builds/31527067)
   
   * **5** of **6**   **(83.33%)**  changed or added relevant lines in **2** 
files are covered.
   * **19** unchanged lines in **4** files lost coverage.
   * Overall coverage decreased (**-0.004%**) to **27.965%**
   
   ---
   
   |  Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
   | :-|--||---: |
   | 
[source-jdbc/src/main/java/org/apache/kylin/source/jdbc/extensible/JdbcHiveInputBase.java](https://coveralls.io/builds/31527067/source?filename=source-jdbc%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fsource%2Fjdbc%2Fextensible%2FJdbcHiveInputBase.java#L107)
 | 2 | 3 | 66.67%
   
   
   |  Files with Coverage Reduction | New Missed Lines | % |
   | :-|--|--: |
   | 
[tool/src/main/java/org/apache/kylin/tool/query/ProbabilityGenerator.java](https://coveralls.io/builds/31527067/source?filename=tool%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Ftool%2Fquery%2FProbabilityGenerator.java#L42)
 | 1 | 83.33% |
   | 
[datasource-sdk/src/main/java/org/apache/kylin/sdk/datasource/framework/conv/DefaultConfigurer.java](https://coveralls.io/builds/31527067/source?filename=datasource-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fsdk%2Fdatasource%2Fframework%2Fconv%2FDefaultConfigurer.java#L127)
 | 2 | 87.5% |
   | 
[core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java](https://coveralls.io/builds/31527067/source?filename=core-cube%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fcube%2Finmemcubing%2FMemDiskStore.java#L439)
 | 5 | 77.81% |
   | 
[datasource-sdk/src/main/java/org/apache/kylin/sdk/datasource/framework/utils/ExpressionComparator.java](https://coveralls.io/builds/31527067/source?filename=datasource-sdk%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Fkylin%2Fsdk%2Fdatasource%2Fframework%2Futils%2FExpressionComparator.java#L57)
 | 11 | 63.38% |
   
   
   |  Totals | [![Coverage 
Status](https://coveralls.io/builds/31527067/badge)](https://coveralls.io/builds/31527067)
 |
   | :-- | --: |
   | Change from base [Build 6029](https://coveralls.io/builds/31488642): |  
-0.004% |
   | Covered Lines: | 26098 |
   | Relevant Lines: | 93324 |
   
   ---
   #   - [Coveralls](https://coveralls.io)
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
> Fix For: v3.1.0
>
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2020-06-17 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17138582#comment-17138582
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus opened a new pull request #1272:
URL: https://github.com/apache/kylin/pull/1272


   From the documentation, we know that when quoted, identifier is case 
sensitive, which is not easy to fix. So we cannot support reserved word as 
identifier, which is rare.
   
   ## Proposed changes
   
   Describe the big picture of your changes here to communicate to the 
maintainers why we should accept this pull request. If it fixes a bug or 
resolves a feature request, be sure to link to that issue.
   
   ## Types of changes
   
   What types of changes does your code introduce to Kylin?
   _Put an `x` in the boxes that apply_
   
   - [ ] Bugfix (non-breaking change which fixes an issue)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to not work as expected)
   - [ ] Documentation Update (if none of the other choices apply)
   
   ## Checklist
   
   _Put an `x` in the boxes that apply. You can also fill these out after 
creating the PR. If you're unsure about any of them, don't hesitate to ask. 
We're here to help! This is simply a reminder of what we are going to look for 
before merging your code._
   
   - [ ] I have create an issue on [Kylin's 
jira](https://issues.apache.org/jira/browse/KYLIN), and have described the 
bug/feature there in detail
   - [ ] Commit messages in my PR start with the related jira ID, like 
"KYLIN- Make Kylin project open-source"
   - [ ] Compiling and unit tests pass locally with my changes
   - [ ] I have added tests that prove my fix is effective or that my feature 
works
   - [ ] If this change need a document change, I will prepare another pr 
against the `document` branch
   - [ ] Any dependent changes have been merged
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
user@kylin or dev@kylin by explaining why you chose the solution you did and 
what alternatives you considered, etc...
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
> Fix For: v3.1.0
>
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-12-20 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000809#comment-17000809
 ] 

ASF subversion and git services commented on KYLIN-3832:


Commit 09cc5a261ca2e1a02907482f29c94f9be71a3377 in kylin's branch 
refs/heads/master from XiaoxiangYu
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=09cc5a2 ]

KYLIN-3832 Clean up


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
> Fix For: v3.1.0
>
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-12-20 Thread ASF subversion and git services (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000808#comment-17000808
 ] 

ASF subversion and git services commented on KYLIN-3832:


Commit afa03ebdcf4c2d6b518856ef7ca59d79ec5735f6 in kylin's branch 
refs/heads/master from weibin0516
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=afa03eb ]

KYLIN-3832 Query pushdown support postgresql


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-12-20 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17000805#comment-17000805
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

nichunen commented on pull request #902: KYLIN-3832 Query pushdown support 
postgresql
URL: https://github.com/apache/kylin/pull/902
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-10-28 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16961642#comment-16961642
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

nichunen commented on pull request #747: KYLIN-3832 Query pushdown support 
postgresql
URL: https://github.com/apache/kylin/pull/747
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-10-28 Thread ASF GitHub Bot (Jira)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16961054#comment-16961054
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

hit-lacus commented on pull request #902: KYLIN-3832 Query pushdown support 
postgresql
URL: https://github.com/apache/kylin/pull/902
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-07-16 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16886571#comment-16886571
 ] 

ASF GitHub Bot commented on KYLIN-3832:
---

weibin0516 commented on pull request #747: KYLIN-3832 Query pushdown support 
postgresql
URL: https://github.com/apache/kylin/pull/747
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Commented] (KYLIN-3832) Kylin pushdown to support postgresql

2019-06-30 Thread weibin0516 (JIRA)


[ 
https://issues.apache.org/jira/browse/KYLIN-3832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16875792#comment-16875792
 ] 

weibin0516 commented on KYLIN-3832:
---

[~Shaofengshi], thanks for assigning to me, i will try to implement this.

> Kylin pushdown to support postgresql
> 
>
> Key: KYLIN-3832
> URL: https://issues.apache.org/jira/browse/KYLIN-3832
> Project: Kylin
>  Issue Type: New Feature
>  Components: Query Engine
>Affects Versions: v2.5.2
>Reporter: hailin.huang
>Assignee: weibin0516
>Priority: Major
>
> when I run pushdown to postgresql in my env, I encount the below exception.
> it seems that kylin need support more JDBC Driver, 
> PushDownRunnerJdbcImpl.class should be more general.
> 2019-02-26 16:12:53,168 ERROR [Query 207dcf77-7c14-8078-ea8b-79644a0c576d-48] 
> service.QueryService:989 : pushdown engine failed current query too
> java.sql.SQLException: Unrecognized column type: int8
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.toSqlType(PushDownRunnerJdbcImpl.java:260)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.extractColumnMeta(PushDownRunnerJdbcImpl.java:192)
>   at 
> org.apache.kylin.query.adhoc.PushDownRunnerJdbcImpl.executeQuery(PushDownRunnerJdbcImpl.java:68)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownQuery(PushDownUtil.java:122)
>   at 
> org.apache.kylin.query.util.PushDownUtil.tryPushDownSelectQuery(PushDownUtil.java:69)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)