ayushtkn commented on PR #6369:
URL: https://github.com/apache/iceberg/pull/6369#issuecomment-1341587366

   Thanx folks, Just thinking about the sequentialId check, why it needs to 
rely on the start id, Does changing that check like that help
   ```
     static boolean hasSequentialIds(PartitionSpec spec) {
       for (int i = 1; i < spec.fields.length; i += 1) {
         if (spec.fields[i].fieldId() != spec.fields[i - 1].fieldId() + 1) {
           return false;
         }
       }
       return true;
     }
   ```


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