[ 
https://issues.apache.org/jira/browse/KYLIN-4191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andras Istvan Nagy updated KYLIN-4191:
--------------------------------------
    Description: 
I am using the real-time olap feature with a lambda datasource definition. When 
executing a query that has a count(dim_field) in the select clause, where 
"dim_field" is one of the dimension fields, I get a NPE from 
org.apache.kylin.stream.core.query.StreamingTupleConverter.

(According to a colleague, a similar query used to work for some time in our 
environment, and then stopped working, but I can't verify this statement. 
Restarting the Kylin processes or disabling/enabling the cube does not "fix" 
the issue.)

The relevant part of stacktrace seems to be:

{{Caused by: java.lang.NullPointerExceptionCaused by: 
java.lang.NullPointerException at 
org.apache.kylin.stream.core.query.StreamingTupleConverter.<init>(StreamingTupleConverter.java:86)
 ~[kylin-stream-core-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
org.apache.kylin.storage.stream.rpc.HttpStreamDataSearchClient.search(HttpStreamDataSearchClient.java:104)
 ~[kylin-storage-stream-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
org.apache.kylin.storage.stream.StreamStorageQuery.search(StreamStorageQuery.java:114)
 ~[kylin-storage-stream-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
org.apache.kylin.query.enumerator.OLAPEnumerator.queryStorage(OLAPEnumerator.java:114)
 ~[kylin-query-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
org.apache.kylin.query.enumerator.OLAPEnumerator.moveNext(OLAPEnumerator.java:60)
 ~[kylin-query-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at Baz$1$1.moveNext(Unknown 
Source) ~[?:?] at 
org.apache.calcite.linq4j.EnumerableDefaults.aggregate(EnumerableDefaults.java:116)
 ~[calcite-linq4j-1.16.0-kylin-r2.jar:3.0.0-SNAPSHOT]}}

Please see attached full stacktrace.

 

  was:
I am using the real-time olap feature with a lambda datasource definition. When 
executing a query that has a count(dim_field) in the select clause, where 
"dim_field" is one of the dimension fields, I get a NPE from 
org.apache.kylin.stream.core.query.StreamingTupleConverter.

(According to a colleague, a similar query used to work for some time in our 
environment, and then stopped working, but I can't verify this statement. 
Restarting the Kylin processes or disabling/enabling the cube does not "fix" 
the issue.)

Please see stacktrace below.

 

 


> NPE in StreamingTupleConverter when querying count on a dimension field
> -----------------------------------------------------------------------
>
>                 Key: KYLIN-4191
>                 URL: https://issues.apache.org/jira/browse/KYLIN-4191
>             Project: Kylin
>          Issue Type: Bug
>          Components: Real-time Streaming
>    Affects Versions: v3.0.0-alpha
>            Reporter: Andras Istvan Nagy
>            Priority: Major
>         Attachments: NPE.txt
>
>
> I am using the real-time olap feature with a lambda datasource definition. 
> When executing a query that has a count(dim_field) in the select clause, 
> where "dim_field" is one of the dimension fields, I get a NPE from 
> org.apache.kylin.stream.core.query.StreamingTupleConverter.
> (According to a colleague, a similar query used to work for some time in our 
> environment, and then stopped working, but I can't verify this statement. 
> Restarting the Kylin processes or disabling/enabling the cube does not "fix" 
> the issue.)
> The relevant part of stacktrace seems to be:
> {{Caused by: java.lang.NullPointerExceptionCaused by: 
> java.lang.NullPointerException at 
> org.apache.kylin.stream.core.query.StreamingTupleConverter.<init>(StreamingTupleConverter.java:86)
>  ~[kylin-stream-core-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
> org.apache.kylin.storage.stream.rpc.HttpStreamDataSearchClient.search(HttpStreamDataSearchClient.java:104)
>  ~[kylin-storage-stream-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
> org.apache.kylin.storage.stream.StreamStorageQuery.search(StreamStorageQuery.java:114)
>  ~[kylin-storage-stream-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
> org.apache.kylin.query.enumerator.OLAPEnumerator.queryStorage(OLAPEnumerator.java:114)
>  ~[kylin-query-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at 
> org.apache.kylin.query.enumerator.OLAPEnumerator.moveNext(OLAPEnumerator.java:60)
>  ~[kylin-query-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT] at Baz$1$1.moveNext(Unknown 
> Source) ~[?:?] at 
> org.apache.calcite.linq4j.EnumerableDefaults.aggregate(EnumerableDefaults.java:116)
>  ~[calcite-linq4j-1.16.0-kylin-r2.jar:3.0.0-SNAPSHOT]}}
> Please see attached full stacktrace.
>  



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

Reply via email to