Paimon Table Partitions
Paimon supports partitioned tables. Data can be divided into multiple subsets based on specified rules through partitioning, improving query performance and data management efficiency. Partitioning is a key optimization technique in Paimon. During query, partition pruning can significantly reduce the amount of data that needs to be scanned.
Partitioning Type
- Identity partitioning: Directly uses the value of the source field as the partition value. This is the most commonly used partitioning method, such as partitioning by a date field.
- Bucket partitioning: Performs hash calculation on the values of a specified field and then applies the modulo to evenly distribute data across a specified number of buckets. This type of partitioning is suitable for scenarios requiring uniform data distribution and concurrent writes.
- Multi-level partitioning: Supports using multiple partitioning fields simultaneously. For example, data can be partitioned by date and then by bucket, enabling hierarchical data organization.
Partition Evolution
Paimon supports partition evolution, allowing you to add or delete partition fields using the ALTER TABLE statement. Partition changes only affect newly written data. Existing data files retain their original partition layout without data migration.
Partition evolution rules:
- Adding a partition field: New data is written according to the new partition scheme, while historical data remains unchanged.
- Deleting a partition field: After a partition field is deleted, new data is no longer partitioned based on the field.
- Stable partition field IDs: During partition evolution, partition field IDs remain unchanged to ensure that historical data can be correctly read.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot