presto-main/src/main/java/io/prestosql/sql/analyzer/ConstantExpressionVerifier.java/ConstantExpressionVerifier/visitDereferenceExpression
class ConstantExpressionVerifier:        @Override
        protected Void visitDereferenceExpression(DereferenceExpression node, Void context)
        {
            if (columnReferences.contains(NodeRef.<Expression>of(node))) {
                throw semanticException(EXPRESSION_NOT_CONSTANT, expression, "Constant expression cannot contain column references");
            }

            process(node.getBase(), context);
            return null;
        }