presto-main/src/main/java/io/prestosql/sql/analyzer/ConstantExpressionVerifier.java/ConstantExpressionVerifierVisitor/visitIdentifier
class ConstantExpressionVerifierVisitor:        @Override
        protected Void visitIdentifier(Identifier node, Void context)
        {
            throw semanticException(EXPRESSION_NOT_CONSTANT, expression, "Constant expression cannot contain column references");
        }