kevinzwang commented on code in PR #1208:
URL: https://github.com/apache/iceberg-python/pull/1208#discussion_r1776140899


##########
pyiceberg/transforms.py:
##########
@@ -517,9 +517,6 @@ def day_func(v: Any) -> int:
     def can_transform(self, source: IcebergType) -> bool:
         return isinstance(source, (DateType, TimestampType, TimestamptzType))
 
-    def result_type(self, source: IcebergType) -> IcebergType:
-        return DateType()
-

Review Comment:
   I'm matching the behavior of the other transforms that extend 
`TimeTransform`, which all just implicitly use `TimeTransform.result_type` 
instead of overriding it. Should we change this for all of them?



-- 
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