Skip to content

Conversation

@EmmyMiao87
Copy link
Contributor

In materialized view 2.0, the define expr is serialized in column.
The method is that doris serialzie the origin stmt of Create Materialzied View Stmt in RollupJobV2 and MVMeta.
The define expr will be extract from the origin stmt after meta is deserialized.

The define expr is necessary for bitmap and hll materialized view.
For example:
MV meta: __doris_mv_bitmap_k1, bitmap_union, to_bitmap(k1)
Origin stmt: select bitmap_union(to_bitmap(k1)) from table
Deserialize meta: __doris_mv_bitmap_k1, bitmap_union, null
After extract: the define expr to_bitmap(k1) from origin stmt should be extracted.
__doris_mv_bitmap_v1, bitmap_union, to_bitmap(k1) (which comes from the origin stmt)

#3344

Change-Id: Ic2da093188d8985f5e97be5bd094e5d60d82c9a7

In materialized view 2.0, the define expr is serialized in column.
The method is that doris serialzie the origin stmt of Create Materialzied View Stmt in RollupJobV2 and MVMeta.
The define expr will be extract from the origin stmt after meta is deserialized.

The define expr is necessary for bitmap and hll materialized view.
For example:
MV meta: __doris_mv_bitmap_k1, bitmap_union, to_bitmap(k1)
Origin stmt: select bitmap_union(to_bitmap(k1)) from table
Deserialize meta: __doris_mv_bitmap_k1, bitmap_union, null
After extract: the define expr `to_bitmap(k1)` from origin stmt should be extracted.
               __doris_mv_bitmap_v1, bitmap_union, to_bitmap(k1) (which comes from the origin stmt)

Change-Id: Ic2da093188d8985f5e97be5bd094e5d60d82c9a7
@EmmyMiao87 EmmyMiao87 added kind/improvement area/materialized-view Issues or PRs related to materialized view labels May 27, 2020
@EmmyMiao87 EmmyMiao87 added this to the 0.13.0 milestone May 27, 2020
@SerializedName(value = "keysType")
private KeysType keysType;
@SerializedName(value = "defineStmt")
private OriginStatement defineStmt;
Copy link
Contributor

Choose a reason for hiding this comment

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

The name defineStmt can easily cause ambiguity with DefineExpr. But this statement may not only parse the semantics of defineExpr in the future。MaterializedViewStmt is a better name ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The define stmt means that this is the definition of materialized views.

Change-Id: I4e1e0f4ad0f6e76cdc43e49938de768ec3b0a0e8
Change-Id: I2be257d512bf541f00912a374a2e07a039fc42b4
Change-Id: I3ab23f5c94ae781167f498fefde2d96e42e05bf9
Copy link
Contributor

@HangyuanLiu HangyuanLiu 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 closed this May 29, 2020
@EmmyMiao87 EmmyMiao87 reopened this May 29, 2020
Copy link
Contributor

@imay imay left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman added the approved Indicates a PR has been approved by one committer. label May 29, 2020
@HangyuanLiu HangyuanLiu merged commit 30df9fc into apache:master May 30, 2020
@EmmyMiao87 EmmyMiao87 mentioned this pull request Sep 1, 2020
BiteTheDDDDt pushed a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Feb 7, 2025
…pool for metadata fetching (apache#44907) (apache#3705)

pick [apache#44907](apache#44907)

In production, we encountered an issue where the librdkafka consumer
stucked during destruction, causing the heavy work pool to become
saturated, which in turn made all heavy work pool-dependent
functionalities, such as querying, unusable. To mitigate this impact, we
replaced the heavy work pool with routine load threads for metadata
fetching.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/materialized-view Issues or PRs related to materialized view kind/improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants