rdblue commented on code in PR #9008:
URL: https://github.com/apache/iceberg/pull/9008#discussion_r1558269287


##########
api/src/main/java/org/apache/iceberg/transforms/Timestamps.java:
##########
@@ -184,13 +252,25 @@ public String toHumanString(Type outputType, Integer 
value) {
       case HOURS:
         return TransformUtil.humanHour(value);
       default:
-        throw new UnsupportedOperationException("Unsupported time unit: " + 
granularity);
+        throw new UnsupportedOperationException("Unsupported time unit: " + 
apply.resultTypeUnit);
     }
   }
 
   @Override
   public String toString() {
-    return name;

Review Comment:
   Why refactor and remove `name`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to