Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](catalog) gen partition id by name (#39325) #39625

Merged
merged 1 commit into from
Aug 20, 2024

Commits on Aug 20, 2024

  1. [fix](catalog) gen partition id by name (apache#39325)

    Followup apache#38525
    Previously, we use sequence number to generate partition id of table in
    hive metastore.
    for example, there are 2 partitions: `dt=2024-10-02` and
    `dt=2024-10-03`, the partition id will be 0 and 1.
    But if a new partition being added: `dt=2024-10-01`, the partiton id
    will be 0, 1, and 2.
    You can see, before, the id `0` is for `dt=2024-10-02`, but now `0` is
    for `dt=2024-10-01`.
    
    This PR use catalog/db/table/partition name to generate a id for the
    partition,
    so that each partition will have unique id.
    morningman committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    f09b9a0 View commit details
    Browse the repository at this point in the history