Fokko commented on code in PR #5672:
URL: https://github.com/apache/iceberg/pull/5672#discussion_r962370075


##########
python/pyiceberg/table/partitioning.py:
##########
@@ -29,7 +29,7 @@
 from pyiceberg.transforms import Transform
 from pyiceberg.utils.iceberg_base_model import IcebergBaseModel
 
-INITIAL_SPEC_ID = 0
+INITIAL_PARTITION_SPEC_ID = 1

Review Comment:
   Alright, moved everything back



##########
python/pyiceberg/table/partitioning.py:
##########
@@ -178,4 +176,10 @@ def assign_fresh_partition_spec_ids(spec: PartitionSpec, 
old_schema: Schema, fre
                 transform=field.transform,
             )
         )
-    return PartitionSpec(INITIAL_SPEC_ID, fields=tuple(partition_fields))
+    if len(spec.fields) > 0:
+        return PartitionSpec(*partition_fields, 
spec_id=INITIAL_PARTITION_SPEC_ID)
+    return UNPARTITIONED_PARTITION_SPEC
+
+
+UNPARTITIONED_PARTITION_SPEC_ID = 0

Review Comment:
   And it is gone 



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

Reply via email to