Fix aggregation definition error logs
@@ -585,10 +585,9 @@ public class AggregationParser {
siddhiQueryContext);
} else if (externalTimestampExecutor.getReturnType() != Attribute.Type.LONG) {
throw new SiddhiAppCreationException(
- "AggregationDefinition '" + aggregationDefinition.getId() + "'s aggregateAttribute expects " +
- "long or string, but found " + timestampExecutor.getReturnType() + ". " +
- "Hence, can't create the siddhi app '" +
- siddhiQueryContext.getSiddhiAppContext().getName() + "'",
+ "Aggregation Definition '" + aggregationDefinition.getId() + "'s timestamp attribute expects " +
+ "long or string, but found " + externalTimestampExecutor.getReturnType() + ". Hence, can't " +
+ "create the siddhi app '" + siddhiQueryContext.getSiddhiAppContext().getName() + "'",
externalTimestampExpression.getQueryContextStartIndex(),
externalTimestampExpression.getQueryContextEndIndex());
}
