Fokko opened a new issue, #1882:
URL: https://github.com/apache/iceberg-python/issues/1882

   ### Feature Request / Improvement
   
   Today you have to pass in an instance of the transform:
   
   ```python
   with  tbl.update_spec() as upd:
       upd.add_field("tpep_pickup_datetime", DayTransform())
   ```
   
   Instead, I think it would be great to also pass in the 
[name](https://iceberg.apache.org/spec/#partition-transforms):
   
   ```
   with  tbl.update_spec() as upd:
       upd.add_field("tpep_pickup_datetime", "day")
   ```
   
   This should be pretty straightforward using the [`parse_transform` 
function](https://github.com/apache/iceberg-python/blob/5c4e59fca083d39dcd18305628a7e75674c0c1f6/pyiceberg/transforms.py#L114-L134).


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