presto-main/src/main/java/io/prestosql/sql/analyzer/Analysis.java/Analysis/getLimit
class Analysis:    public OptionalLong getLimit(Node node)
    {
        checkState(limit.containsKey(NodeRef.of(node)), "missing LIMIT value for node %s", node);
        return limit.get(NodeRef.of(node));
    }