presto-main/src/main/java/io/prestosql/sql/planner/optimizations/DistinctOutputQueryUtil.java/IsDistinctPlanVisitor/visitValues
class IsDistinctPlanVisitor:        @Override
        public Boolean visitValues(ValuesNode node, Void context)
        {
            return node.getRows().size() == 1;
        }