Hi team, I'm trying to run a `MergeRollupTask` on...
# troubleshooting
a
Hi team, I'm trying to run a
MergeRollupTask
on the
sales_OFFLINE
table, but it fails with a
StringIndexOutOfBoundsException
. It looks like the error comes from this line:
MergeRollupTaskUtils.getLevelToConfigMap()
Here, is the config that I am using.
Copy code
json

j
"taskTypeConfigsMap": {
  "MergeRollupTask": {
    "mergeType": "rollup",
    "bucketTimePeriod": "1d",
    "bufferTimePeriod": "3d",
    "revenue.aggregationType": "sum",
    "quantity.aggregationType": "sum"
  }
}
And here's the relevant part of the error:
Copy code
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 9
at ...MergeRollupTaskUtils.getLevelToConfigMap(MergeRollupTaskUtils.java:64)
b
Hello. I think the error is caused by not prefixing properties such as: • mergeType • bucketTimePeriod • bufferTimePeriod with bucket time, e.g. 1day.mergeType . Please have a look at https://docs.pinot.apache.org/operators/operating-pinot/minion-merge-rollup-task .
m
Can we make the error more user friendly?
a
Thanks for the feedback! Just updated the message to make things a bit clearer.
m
I meant in the code 😊 cc @Bolek Ziobrowski
b