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 2019/04/11 04:13:04 UTC

[GitHub] [incubator-druid] love1693294577 opened a new issue #7445: materialized-view get all derivatives for datasource in query is null !!!!!!!!!!!!!!!!!!!!!!

love1693294577 opened a new issue #7445: materialized-view  get all derivatives for datasource in query  is  null !!!!!!!!!!!!!!!!!!!!!!
URL: https://github.com/apache/incubator-druid/issues/7445
 
 
   I encountered a phenomenon, I was offline hadoop materialized view task, also generated a materialized view, when tracking the source log, found that there is no get all derivatives
   
   [groupBy_[xxx_view2]_ad3ca90c-30b0-4be2-9169-739114c583b7]] 
   org.apache.druid.query.materializedview.DataSourceOptimizer - +++++++derivatives+++++++[]
   
   this  is my Configuration
     'http://xx.xx.xx.xx:8082/druid/v2/?pretty=' \
   {
     "type":"derivativeDataSource",
     "baseDataSource":"xx_view2",
    "dataSource":"xx_view_11",
     "dimensionsSpec":{
               "dimensions":[
                 "xx",
                 "xx"
               ]
             },
       "metricsSpec" : [
         { "name": "xx",
           "type": "doubleSum",
           "fieldName":"xx"}
         ],
     "tuningConfig": {
         "type":"hadoop",
           "jobProperties" : {
            "mapreduce.job.user.classpath.first":"true",
                    "mapreduce.reduce.speculative" : "false",
                    "mapreduce.map.speculative": "false"
                           }
                   }
   }
   submit task
   curl -XPOST -H'Content-Type: application/json' -d @xx.json http://xx.xx.xx.xx:8090/druid/indexer/v1/supervisor
   
   query
   '{"queryType":"view","query":{"queryType":"groupBy","dataSource":"xxx_view2","granularity":"all","descending":"true","limitSpec":{"type":"default","limit":1},"context":{"priority":1,"timeout":10000000,"queryId":"c7156e24-ad74-4a4b-ae24-2df660cd8287","groupByStrategy":"v2"},"dimensions":["xx"],"aggregations":[{"type":"longSum","name":"xx","fieldName":"xx"}],"intervals":["2017-04-26T00:00:00.000+08:00/2017-04-28T00:00:00.000+08:00"]}
   
   I can't get an optimized materialized view  
   
   This is my log
   2019-04-11T11:54:21,057 INFO [qtp1556201248-110[topN_[xx_view2]_c7156e24-ad74-4a4b-ae24-2df660cd8287]] org.apache.druid.query.materializedview.DataSourceOptimizer - +++++++derivatives+++++++[]
   
   I am wondering why the derivatives are null, as normal, will get derivatives
   
   
   
   

----------------------------------------------------------------
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


With regards,
Apache Git Services

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