[Druid 0.9.0] Questions about Index Task

I am trying out the index task using some CSV that are present. I wanted to know a few things

  1. Inside dataSchema -> parser -> parseSpec we have the following 2 properties. Is there any difference between the two or will be the same always?
  2. dimensionsSpec -> dimensions
  3. columns
  4. If I want to add a aggregation column count while indexing my understanding is that it should go inside metricsSpec. But do I need to add it somewhere else also?

See Inline

I am trying out the index task using some CSV that are present. I wanted to know a few things

  1. Inside dataSchema -> parser -> parseSpec we have the following 2 properties. Is there any difference between the two or will be the same always?
  2. dimensionsSpec -> dimensions
  3. columns

Columns contains both dimensions and metrics as well in the order they appear in the csv file.

  1. If I want to add a aggregation column count while indexing my understanding is that it should go inside metricsSpec. But do I need to add it somewhere else also?

For count you just need to add it to the metricsSpec.

For other aggregators like longSum you will need to specify it in the list of columns.