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 2018/11/22 02:42:10 UTC

[GitHub] zhaojiandong edited a comment on issue #6651: Case when cannot work on nested sql

zhaojiandong edited a comment on issue #6651: Case when cannot work on nested sql
URL: https://github.com/apache/incubator-druid/issues/6651#issuecomment-440894684
 
 
   > Hey @zhaojiandong,
   > 
   > What result _do_ you get when you run this query? And what do you get if you add "EXPLAIN PLAN FOR" to the front of it?
   
   For example, the inner SQL
   ```
   SELECT
       TIME_FLOOR(__time, 'PT1M') as t,
       host,
       sum(sum_value) as v
   FROM druid_metric_default
   ```
   
   We got:  
   
   | t | host | v  |
   | :------| :------ | :------ |
   | 2018-11-22T10:00:00.000Z   | druid-host1  | 100 |
   | 2018-11-22T10:00:00.000Z   | druid-host2  | 10 |
   | 2018-11-22T10:01:00.000Z    | druid-host1   |150 |
   | 2018-11-22T10:01:00.000Z    | druid-host2  | 12 |
   
   
   We expect to  get when run the whole sql:
   
   | t | tps_host1 | tps_host2  |
   | :------| :------ | :------ |
   | 2018-11-22T10:00:00.000Z | 100 | 10 |
   | 2018-11-22T10:01:00.000Z  | 150 | 12 |
   
   Actually We get:
   
   | t | tps_host1 | tps_host2  |
   | :------| :------ | :------ |
   |2018-11-22T10:00:00.000Z  |  0     |     0    |
   |2018-11-22T10:01:00.000Z   |  0      |    0    | 
   @gianm 
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org