singhpk234 commented on code in PR #109: URL: https://github.com/apache/iceberg-rust/pull/109#discussion_r1408577397
########## crates/iceberg/src/spec/partition.rs: ########## @@ -58,6 +58,13 @@ impl PartitionSpec { pub fn builder() -> PartitionSpecBuilder { PartitionSpecBuilder::default() } + + /// Returns if the partition spec is unpartitioned. + /// + /// A [`PartitionSpec`] is unpartitioned if it has no fields. + pub fn is_unpartitioned(&self) -> bool { + self.fields.is_empty() Review Comment: [doubt] what about V1 spec with all fields as void transform ? -- 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 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