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 2021/07/05 13:49:25 UTC

[GitHub] [druid] smic-datalabs-von edited a comment on issue #11410: Zero metrics if data is from a druid inputSource

smic-datalabs-von edited a comment on issue #11410:
URL: https://github.com/apache/druid/issues/11410#issuecomment-874127584


   I already found a solution for this.
   
   I actually found the solution in this [Druid User Group thread](https://groups.google.com/g/druid-user/c/2f-tjuo2bSQ/m/8RNqXET6AQAJ)
   
   Basically, you have to indicate the target columns in the `metrics` key in `ioConfig`.
   
   Something like this:
   ```json
   "ioConfig": {
     "type": "index_parallel",
     "inputSource": {
     "type": "druid",
     "dataSource": "druid_ds",
     "interval": "2019-01-07/2019-01-10",
     "metrics": ["metric1", "metric2"]
   }
   ```
   Where ` "metric1"` and `"metric2"` are your TARGET COLUMNS
   
   The target columns does not necessarily have to be metric columns in the originating dataSource. Dimension columns are fine. You just have to indicate it in the `metrics` key under `ioConfig` in order for the ingestion process to get those columns for metrics processing.
   
   I am leaving this issue open since this is an annoying bug and needs to be fixed.


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

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

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