Basic question about Aggregation

If I have want to add new metric which is double, do I need to add aggregator in ingestion spec to be able to query the sum of the value?

For example, do I need to add these aggregators.

new DoubleSumAggregatorFactory(“adRequestStart”, “requestStart”),

new DoubleSumAggregatorFactory(“adRequestEnd”, “requestEnd”),

new DoubleSumAggregatorFactory(“adInit”, “init”)

If I want to be able to use aggregation like this in my query.

“aggregations”: [

{

“type”:“longSum”,

“name”:“requestStart”,

“fieldName”:“adRequestStart”

}]

I tried doing that (without adding DoubleSumAggregatorFactor) but I get 0 so I just want to confirm that.

Yes, for columns you want to query, you have to include them on ingestion side.