Skip to content

Conversation

@HangyuanLiu
Copy link
Contributor

For #3344

@HangyuanLiu
Copy link
Contributor Author

HangyuanLiu commented May 21, 2020

For Review , add UT later

@HangyuanLiu HangyuanLiu requested a review from EmmyMiao87 May 21, 2020 11:34
@HangyuanLiu HangyuanLiu self-assigned this May 21, 2020
@HangyuanLiu HangyuanLiu added area/materialized-view Issues or PRs related to materialized view kind/feature Categorizes issue or PR as related to a new feature. labels May 21, 2020
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

And by the way, when the bitmap and hll types are not yet supported on the BE side, should these new operations be prohibited first?

Preconditions.checkState(functionCallExpr.getChildren().size() == 1);
Expr functionChild0 = functionCallExpr.getChild(0);

if (functionName.equalsIgnoreCase("bitmap_union") || functionName.equalsIgnoreCase("hll_union")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need an extensible framework to handle the expression part of the materialized view more elegantly, rather than simply judging a few functions.
This can prepare for more complex expressions later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree with you. But schema change and expression compute logical is non-universal. so we can only support few function now.

} else {
throw new DdlException("The define expr of column is only support bitmap_union or hll_union");
}
newMVColumn.setIsKey(false);
Copy link
Contributor

Choose a reason for hiding this comment

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

The isKey has been set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the aggregate function is computed for the original column, it should be not key whether the original column is a key column or a value column

@EmmyMiao87
Copy link
Contributor

The commit msg is too short.

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@EmmyMiao87 EmmyMiao87 linked an issue May 25, 2020 that may be closed by this pull request
@EmmyMiao87 EmmyMiao87 merged commit 2608f83 into apache:master May 25, 2020
@EmmyMiao87 EmmyMiao87 mentioned this pull request Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/materialized-view Issues or PRs related to materialized view kind/feature Categorizes issue or PR as related to a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Proposal] Materialized View 2.0

3 participants