sungwy commented on issue #706: URL: https://github.com/apache/iceberg-rust/issues/706#issuecomment-2531897325
Hi @Sl1mb0 - Thank you for raising this issue! I took a look at this issue in order to resolve all issues blocking the 0.4.0 release. I put up the PR #772 to replicate your issue, and I was able to get the exact error using the code you shared above. I did notice that you had an unpartitioned PartitionSpec, which doesn't align with the partition value you are inserting as you are expecting to have one partition value persisted into your DataFile entry. In order to preserve that value, you will need to use a PartitionSpec that aligns with your values. Please take a look at this PR to see that the partition value is being recorded properly when the PartitionSpec has a field: https://github.com/apache/iceberg-rust/pull/772/files#diff-8389535350ef7cddc266dfd18d589a978643da0334c23e16646e62e8d6a0892eR2115 ``` // Create a partition spec with a single partition field. let partition_spec = BoundPartitionSpec::builder(schema.clone()) .with_spec_id(0) .add_partition_field("field_0", "field_0", Transform::Identity) .unwrap() .build() .unwrap(); ``` -- 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