presto-main/src/main/java/io/prestosql/sql/analyzer/Analysis.java/Analysis/registerNamedQuery
class Analysis:    public void registerNamedQuery(Table tableReference, Query query)
    {
        requireNonNull(tableReference, "tableReference is null");
        requireNonNull(query, "query is null");

        namedQueries.put(NodeRef.of(tableReference), query);
    }