Disable the preparedStatement cache should workaround this issue per my test, 
it can be disabled by setting the "enableStatementCache" field to false in the 
sql request, like:
{
    "sql":"...",
    "project":"...",
    "enableStatementCache":false,
    ...
}


At 2018-10-14 10:23:06, "Ma Gang" <[email protected]> wrote:

@all,
Jira ticket has been created for this issue: 
https://issues.apache.org/jira/browse/KYLIN-3629
I have provided a patch in the ticket, the issue is introduced by the 
preparedStatement cache implementation: 
https://issues.apache.org/jira/browse/KYLIN-3536
I didn't consider the case that when there is no realization exists in the 
OLAPContext.

在 2018-10-14 00:06:24,"Ma Gang" <[email protected]> 写道:

@guofeng,
You may first disable the preparestatement cache to see it works or not, it can 
be disabled by setting the "enableStatementCache" field to false in the sql 
request, like:
{
    "sql":"...",
    "project":"...",
    "enableStatementCache":false,
    ...
}



At 2018-10-13 23:16:13, "Ma Gang" <[email protected]> wrote:

That may caused by the sql that use preparedStatement didnot hit any cube, 
@guofeng, could you provide the sql?


| |
Ma Gang
|
|
邮箱:[email protected]
|

Signature is customized by Netease Mail Master

On 10/13/2018 22:41, ShaoFeng Shi wrote:
It looks more like a bug related with prepared statement cache.


@magang, it looks like the "preparedContext.olapContexts" may have null values 
but no check. 


郭锋 <[email protected]> 于2018年10月12日周五 下午3:52写道:

你好:
       我们用的是apache-kylin-2.5.0-bin-cdh60.tar.gz 






------------------
郭锋

百乘金科/金蛋分期/技术部/数据开发组

北京市朝阳区北辰世纪中心B座17层

 
 
 
------------------ Original ------------------
From:  "Lijun Cao"<[email protected]>;
Date:  Fri, Oct 12, 2018 03:51 PM
To:  "user"<[email protected]>;
Subject:  Re: 【kylin2.5.0】 NullPointerException
 
Hi 郭锋:


Which edition of Kylin 2.5 do you use ?


The apache-kylin-2.5.0-bin-cdh57.tar.gz one or the 
apache-kylin-2.5.0-bin-cdh60.tar.gz one ?


Best Regards


Lijun Cao




在 2018年10月12日,15:35,郭锋 <[email protected]> 写道:


hi all:


       Kylin的版本为2.5.0 , 部署在cdh6.0.0 上, 
当向kylin发送查询语句时,服务器端出现NullPointerException, 发送的查询语句及kylin的日志信息见附件;
       请问,这个是什么问题,怎么解决?
       
       谢谢


               <[email protected]>
<[email protected]><x.rar><kylin参数请求异常信息.txt>






--

Best regards,


Shaofeng Shi 史少锋






 





 

Reply via email to