Skip to content

Conversation

@morningman
Copy link
Contributor

When reducing the key columns of an aggregate table by doing schema change
or rollup, we should trigger a re-sort schema change process to re-sort
and merge the data into new schema. So that the data in new schema will
be more aggregated.

Fix: #3660

When reducing the key columns of an aggregate table by doing schema change
or rollup, we should trigger a re-sort schema change process to re-sort
and merge the data into new schema. So that the data in new schema will
be more aggregated.
@morningman morningman added kind/fix Categorizes issue or PR as related to a bug. area/schema-change Issues or PRs related to schema change labels May 21, 2020
@morningman morningman self-assigned this May 21, 2020
@imay imay requested a review from chaoyli May 22, 2020 03:07
// new keys: A B C
//
// old keys: A B C D
// new keys: A B
Copy link
Contributor

Choose a reason for hiding this comment

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

After this pull request.
old keys: A B C D
new keys: A B C
will be resorted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry that this PR is not ready, I will consider more situation.

Copy link
Contributor

Choose a reason for hiding this comment

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

This case also need be re-agg, so the sc_sorting must be marked as true.

@EmmyMiao87
Copy link
Contributor

EmmyMiao87 commented Sep 11, 2020

Another pr #4587 has fixed this problem

@EmmyMiao87 EmmyMiao87 closed this Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/schema-change Issues or PRs related to schema change kind/fix Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Alter] The rollup index's row number is same as base table.

4 participants