jayceslesar commented on issue #2166:
URL: 
https://github.com/apache/iceberg-python/issues/2166#issuecomment-3028576733

   Here is what the metadata looks like before:
   
   ```json
   {
       "location": "s3://my-bucket/jayce-test-again",
       "table-uuid": "c467f3f1-f0d3-4b1d-a1d4-d1981ec3bce2",
       "last-updated-ms": 1751474855599,
       "last-column-id": 2,
       "schemas": [
           {
               "type": "struct",
               "fields": [
                   {
                       "id": 1,
                       "name": "col_1",
                       "type": "string",
                       "required": true
                   },
                   {
                       "id": 2,
                       "name": "col_2",
                       "type": "string",
                       "required": true
                   }
               ],
               "schema-id": 0,
               "identifier-field-ids": [
                   1
               ]
           }
       ],
       "current-schema-id": 0,
       "partition-specs": [
           {
               "spec-id": 0,
               "fields": []
           }
       ],
       "default-spec-id": 0,
       "last-partition-id": 999,
       "properties": {
           "write.format.default": "parquet",
           "write.target-file-size-bytes": "134217728",
           "write.metadata.delete-after-commit.enabled": "true",
           "write.metadata.previous-versions-max": "5"
       },
       "snapshots": [],
       "snapshot-log": [],
       "metadata-log": [],
       "sort-orders": [
           {
               "order-id": 1,
               "fields": [
                   {
                       "source-id": 2,
                       "transform": "identity",
                       "direction": "asc",
                       "null-order": "nulls-first"
                   }
               ]
           }
       ],
       "default-sort-order-id": 1,
       "refs": {},
       "statistics": [],
       "format-version": 2,
       "last-sequence-number": 0
   }
   ```
   
   And after the removal of the column (corrupted)
   
   ```json
   {
       "location": "s3://my-bucket/jayce-test-again",
       "table-uuid": "c467f3f1-f0d3-4b1d-a1d4-d1981ec3bce2",
       "last-updated-ms": 1751474858863,
       "last-column-id": 2,
       "schemas": [
           {
               "type": "struct",
               "fields": [
                   {
                       "id": 1,
                       "name": "col_1",
                       "type": "string",
                       "required": true
                   },
                   {
                       "id": 2,
                       "name": "col_2",
                       "type": "string",
                       "required": true
                   }
               ],
               "schema-id": 0,
               "identifier-field-ids": [
                   1
               ]
           },
           {
               "type": "struct",
               "fields": [
                   {
                       "id": 1,
                       "name": "col_1",
                       "type": "string",
                       "required": true
                   }
               ],
               "schema-id": 1,
               "identifier-field-ids": [
                   1
               ]
           }
       ],
       "current-schema-id": 1,
       "partition-specs": [
           {
               "spec-id": 0,
               "fields": []
           }
       ],
       "default-spec-id": 0,
       "last-partition-id": 999,
       "properties": {
           "write.format.default": "parquet",
           "write.target-file-size-bytes": "134217728",
           "write.metadata.delete-after-commit.enabled": "true",
           "write.metadata.previous-versions-max": "5"
       },
       "snapshots": [],
       "snapshot-log": [],
       "metadata-log": [
           {
               "metadata-file": 
"s3://my-bucket/jayce-test-again/metadata/00000-eec106a1-7c00-434e-9a95-fbe8df8f269a.metadata.json",
               "timestamp-ms": 1751474855599
           }
       ],
       "sort-orders": [
           {
               "order-id": 1,
               "fields": [
                   {
                       "source-id": 2,
                       "transform": "identity",
                       "direction": "asc",
                       "null-order": "nulls-first"
                   }
               ]
           }
       ],
       "default-sort-order-id": 1,
       "refs": {},
       "statistics": [],
       "format-version": 2,
       "last-sequence-number": 0
   }
   ```


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