yikuanlee commented on issue #7415:
URL: https://github.com/apache/iceberg/issues/7415#issuecomment-1729406032

   was able to re-produce from hive-iceberg-handler for format-version=2. NPE 
for both read/write 
   Any idea of the root cause ? not sure why it did not read current partition 
spec.
   ```
   Error while getting Storage Handler splits for: 
org.apache.iceberg.mr.hive.HiveIcebergInputFormat
   java.lang.NullPointerException: Type cannot be null
           at 
org.apache.iceberg.relocated.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:907)
 
           at org.apache.iceberg.types.Types$NestedField.<init>(Types.java:446)
           at 
org.apache.iceberg.types.Types$NestedField.optional(Types.java:415) 
           at 
org.apache.iceberg.PartitionSpec.partitionType(PartitionSpec.java:132)
           at 
org.apache.iceberg.DeleteFileIndex.lambda$new$0(DeleteFileIndex.java:84) 
           at 
org.apache.iceberg.relocated.com.google.common.collect.RegularImmutableMap.forEach(RegularImmutableMap.java:292)
           at org.apache.iceberg.DeleteFileIndex.<init>(DeleteFileIndex.java:84
           at 
org.apache.iceberg.DeleteFileIndex$Builder.build(DeleteFileIndex.java:525)
           at org.apache.iceberg.ManifestGroup.plan(ManifestGroup.java:182)
           at org.apache.iceberg.ManifestGroup.planFiles(ManifestGroup.java:169)
           at 
org.apache.iceberg.DataTableScan.doPlanFiles(DataTableScan.java:103)
           at org.apache.iceberg.BaseTableScan.planFiles(BaseTableScan.java:152)
           at org.apache.iceberg.DataTableScan.planFiles(DataTableScan.java:27)
           at org.apache.iceberg.BaseTableScan.planTasks(BaseTableScan.java:178)
           at org.apache.iceberg.DataTableScan.planTasks(DataTableScan.java:27)
           at 
org.apache.iceberg.mr.mapreduce.IcebergInputFormat.getSplits(IcebergInputFormat.java:174)
           at 
org.apache.iceberg.mr.mapred.MapredIcebergInputFormat.getSplits(MapredIcebergInputFormat.java:69)
           at 
org.apache.iceberg.mr.hive.HiveIcebergInputFormat.getSplits(HiveIcebergInputFormat.java:144)
    ```


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