You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2020/12/05 04:48:05 UTC
[GitHub] [druid] damnMeddlingKid opened a new issue #10643: NullPointer exception when attempting to format null value in time column result when running in SQL query mode.
damnMeddlingKid opened a new issue #10643:
URL: https://github.com/apache/druid/issues/10643
### Affected Version
Tested in druid 0.20.0
### Description
Steps to reproduce
1) Turn on SQL null handling using druid.generic.useDefaultValueForNull=false
2) Run a query that returns a null value for a time column such as
```
SELECT MAX(__time) as t1, MAX(__time) FILTER(WHERE dim1 = 'non_existing') as t2 FROM druid.foo
```
in this case there are no rows matching the filtered aggregate so the value returned [here](https://github.com/apache/druid/blob/master/sql/src/main/java/org/apache/druid/sql/http/SqlResource.java#L135) is null.
3) A NullPointer exception is logged in the broker but since results are streamed the client receives a 200 with partial results.
this is occurring because we're trying to format the time column values without first checking if they're null
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] damnMeddlingKid edited a comment on issue #10643: NullPointer exception when attempting to format null value in time column result when running in SQL query mode.
Posted by GitBox <gi...@apache.org>.
damnMeddlingKid edited a comment on issue #10643:
URL: https://github.com/apache/druid/issues/10643#issuecomment-739125666
Theres a larger issue here, which is that we're returning a partial result to the client with a success status when an exception occurs. but i couldn't find a way to fix that with the streaming output.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] clintropolis closed issue #10643: NullPointer exception attempting to format null value in time column result when returning SQL query response.
Posted by GitBox <gi...@apache.org>.
clintropolis closed issue #10643:
URL: https://github.com/apache/druid/issues/10643
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] damnMeddlingKid commented on issue #10643: NullPointer exception when attempting to format null value in time column result when running in SQL query mode.
Posted by GitBox <gi...@apache.org>.
damnMeddlingKid commented on issue #10643:
URL: https://github.com/apache/druid/issues/10643#issuecomment-739125666
Theres a larger issue here, which is that we're returning a partial result to the client with a success status. but i couldn't find a way to fix that with the streaming output.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org