Zhanxiao-Ma commented on issue #14289: URL: https://github.com/apache/iceberg/issues/14289#issuecomment-3408984803
> [@Zhanxiao-Ma](https://github.com/Zhanxiao-Ma) can you check whether this still fails with Iceberg 1.10.0? This should have been fixed by [#11868](https://github.com/apache/iceberg/pull/11868) The current support for UnknownType in Iceberg seems to be incomplete. > > [@Zhanxiao-Ma](https://github.com/Zhanxiao-Ma) can you check whether this still fails with Iceberg 1.10.0? This should have been fixed by [#11868](https://github.com/apache/iceberg/pull/11868) > > I used the code from the main branch to conduct relevant tests. The issue described in the GitHub issue has been resolved, but a new problem was found. > > Table Schema: a, b, c > > 1 Select column a as the partition column and write data (DataFile1 with partition info). 2 Call the interface Table.updateSpec().removeField() to remove the partition information. 3 Then call the interface Table.updateSchema().deleteColumn("a"). 4 Execute Table.newDelete().deleteFile(DataFile1).commit(), but it throws an error: Cannot determine comparator for type: unknown java.lang.UnsupportedOperationException: Cannot determine comparator for type: unknown at org.apache.iceberg.types.Comparators.forType(Comparators.java:76) at org.apache.iceberg.types.Comparators.internal(Comparators.java:82) at org.apache.iceberg.types.Comparators$StructLikeComparator.lambda$new$0(Comparators.java:104) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.Collections$2.tryAdvance(Collections.java:4747) at java.base/java.util.Collections$2.forEachRemaining(Collections.java:4755) at java.base/java.util.stream.AbstractPipeline.copyInto(Abs tractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:550) at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:517) at org.apache.iceberg.types.Comparators$StructLikeComparator.(Comparators.java:106) at org.apache.iceberg.types.Comparators.forType(Comparators.java:54) at org.apache.iceberg.util.StructLikeWrapper.forType(StructLikeWrapper.java:36) at org.apache.iceberg.util.StructLikeSet.lambda$new$0(StructLikeSet.java:44) at java.base/java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.java:305) at java.base/java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:195) at java.base/java.lang.ThreadLocal.get(ThreadLocal.java:172) at org.apache.iceberg.util.StructLikeSet.add(StructLikeSet.java:102) at org.apache.icebe rg.util.StructLikeSet.add(StructLikeSet.java:32) at org.apache.iceberg.util.PartitionSet.add(PartitionSet.java:93) at org.apache.iceberg.ManifestFilterManager.delete(ManifestFilterManager.java:183) at org.apache.iceberg.MergingSnapshotProducer.delete(MergingSnapshotProducer.java:197) at org.apache.iceberg.StreamingDelete.deleteFile(StreamingDelete.java:49) at org.apache.iceberg.StreamingDelete.deleteFile(StreamingDelete.java:24) at org.apache.iceberg.TestOverwrite.testOverwriteFailedPartition(TestOverwrite.java:219) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.util.Optional.ifPresent(Optional.java:183) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) a t java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) at java.base/java.util.ArrayList.forEach(ArrayList.java:1541) The current support for UnknownType in Iceberg seems to be incomplete. Do you have any suggestions to complete this operation? @nastra -- 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]
