Skip to content

Python: Add partition_type to partition_spec#5929

Merged
rdblue merged 1 commit intoapache:masterfrom
Fokko:fd-add-partition-spec-partition-type
Oct 7, 2022
Merged

Python: Add partition_type to partition_spec#5929
rdblue merged 1 commit intoapache:masterfrom
Fokko:fd-add-partition-spec-partition-type

Conversation

@Fokko
Copy link
Contributor

@Fokko Fokko commented Oct 6, 2022

We need to construct a StructType from the PartitionSpec for the manifest evaluators

@github-actions github-actions bot added the python label Oct 6, 2022
We need to construct a StructType from the PartitionSpec for
the manifest evaluators
@Fokko Fokko force-pushed the fd-add-partition-spec-partition-type branch from 4973e45 to 6796035 Compare October 7, 2022 06:27
schema(Schema): the schema of data table
spec_id(int): any change to PartitionSpec will produce a new specId
fields(List[PartitionField): list of partition fields to produce partition values
fields(Tuple[PartitionField): list of partition fields to produce partition values
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing a closing ]?

- Partition fields may be added later, in which case not all files would have the result field,
and it may be null.

There is a case where we can guarantee that a partition field in the first and only partition spec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: we used in documentation.

@rdblue rdblue merged commit bc62cf8 into apache:master Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants