Fokko commented on code in PR #5030:
URL: https://github.com/apache/iceberg/pull/5030#discussion_r907786099
##########
python/src/iceberg/transforms.py:
##########
@@ -301,6 +301,91 @@ def _(self, value_type: IcebergType, value: int) -> str:
return datetime.to_human_timestamptz(value)
+class TruncateTransform(Transform[S, S]):
+ """A transform for truncating a value to a specified width.
+ Args:
+ source_type (Type): An Iceberg Type of IntegerType, LongType,
StringType, BinaryType or DecimalType
Review Comment:
Nit:
```suggestion
source_type (IcebergType): An Iceberg Type of IntegerType, LongType,
StringType, BinaryType or DecimalType
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]