@Override
    public Object visitOffset(SiddhiQLParser.OffsetContext ctx) {

        Expression expression = (Expression) visit(ctx.expression());
        if (expression instanceof Constant) {
            populateQueryContext(expression, ctx);
            return (Constant) expression;
        } else {
            throw newSiddhiParserException(ctx,
                    "'offset' only accepts int and long constants but found '" + expression + "'");
        }
    }
{@inheritDoc}
<p>
<p>The default implementation returns the result of calling
{@link #visitChildren} on {@code ctx}.</p>
modules/siddhi-query-compiler/src/main/java/io/siddhi/query/compiler/internal/SiddhiQLBaseVisitorImpl.java