@Override
    public TimePeriod visitAggregation_time(@NotNull SiddhiQLParser.Aggregation_timeContext ctx) {

        if (ctx.aggregation_time_interval() != null) {
            TimePeriod timePeriod = visitAggregation_time_interval(ctx.aggregation_time_interval());
            populateQueryContext(timePeriod, ctx);
            return timePeriod;
        } else if (ctx.aggregation_time_range() != null) {
            TimePeriod timePeriod = visitAggregation_time_range(ctx.aggregation_time_range());
            populateQueryContext(timePeriod, ctx);
            return timePeriod;
        }
        throw newSiddhiParserException(ctx, "Found " + ctx.getText()
                + " but only comma separated time durations, or time duration ... time duration is supported!");
    }
{@inheritDoc}
<p>The default implementation returns the result of calling
{@link #visitChildren} on {@code ctx}.</p>

@param ctx
modules/siddhi-query-compiler/src/main/java/io/siddhi/query/compiler/internal/SiddhiQLBaseVisitorImpl.java