Fokko commented on code in PR #1610:
URL: https://github.com/apache/iceberg-python/pull/1610#discussion_r1943253743
##########
pyiceberg/utils/properties.py:
##########
@@ -74,3 +77,13 @@ def get_first_property_value(
if property_value := properties.get(property_name):
return property_value
return None
+
+
+def get_header_properties(
+ properties: Properties,
+) -> Properties:
+ return {
+ key[len(HEADER_PREFIX):]: value
Review Comment:
nit: maybe pull the `len()` out of the loop for performance reasons.
--
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]