Skip to content

PartitionSpec isUnpartitioned returns true for tables which previously had Partitions but no longer do #3014

@RussellSpitzer

Description

@RussellSpitzer

Because SpecV1 creates "void" transforms when removing partition transforms, a v1 table whose partitions are removed will always return an unpartitioned spec.

https://github.com/apache/iceberg/blob/master/api/src/main/java/org/apache/iceberg/PartitionSpec.java#L97-L99

This method should always return true if all of the transforms are void as well.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions