-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feature](mtmv)Support iceberg partition refresh. #44726
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
870c5ab to
ea79a6a
Compare
|
run buildall |
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Show resolved
Hide resolved
235a77f to
7ef6b3a
Compare
|
run buildall |
fe/fe-core/src/main/java/org/apache/doris/mtmv/MTMVRelatedTableIf.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/job/extensions/mtmv/MTMVTask.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergPartitionInfo.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Show resolved
Hide resolved
708edf0 to
1df4979
Compare
|
run buildall |
zddr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by anyone and no changes requested. |
|
run p0 |
fe/fe-core/src/main/java/org/apache/doris/job/extensions/mtmv/MTMVTask.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/org/apache/doris/datasource/iceberg/IcebergExternalTable.java
Outdated
Show resolved
Hide resolved
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
### What problem does this PR solve? Previously, when using Iceberg to create MTMV, it was not possible to perceive changes in partition lists and data, so only ```refresh materialized view mv1 complete ```could be used to force full refresh. This PR obtains the partition list of Iceberg, the last update time of the partition, and the latest snapshotId of the table. Therefore, MTMV can be partition based on Iceberg tables and perceive changes in data, automatically refreshing partitions For now, we only support single partition column table and the partition transform must one of hour, day, month or year. Will support Identity transform soon. Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None
### What problem does this PR solve? Previously, when using Iceberg to create MTMV, it was not possible to perceive changes in partition lists and data, so only ```refresh materialized view mv1 complete ```could be used to force full refresh. This PR obtains the partition list of Iceberg, the last update time of the partition, and the latest snapshotId of the table. Therefore, MTMV can be partition based on Iceberg tables and perceive changes in data, automatically refreshing partitions For now, we only support single partition column table and the partition transform must one of hour, day, month or year. Will support Identity transform soon. Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None
### What problem does this PR solve? Previously, when using Iceberg to create MTMV, it was not possible to perceive changes in partition lists and data, so only ```refresh materialized view mv1 complete ```could be used to force full refresh. This PR obtains the partition list of Iceberg, the last update time of the partition, and the latest snapshotId of the table. Therefore, MTMV can be partition based on Iceberg tables and perceive changes in data, automatically refreshing partitions For now, we only support single partition column table and the partition transform must one of hour, day, month or year. Will support Identity transform soon. Issue Number: close #xxx Related PR: #xxx Problem Summary: ### Release note None
Previously, when using Iceberg to create MTMV, it was not possible to perceive changes in partition lists and data, so only ```refresh materialized view mv1 complete ```could be used to force full refresh. This PR obtains the partition list of Iceberg, the last update time of the partition, and the latest snapshotId of the table. Therefore, MTMV can be partition based on Iceberg tables and perceive changes in data, automatically refreshing partitions For now, we only support single partition column table and the partition transform must one of hour, day, month or year. Will support Identity transform soon. Issue Number: close #xxx Related PR: #xxx Problem Summary: None
What problem does this PR solve?
Previously, when using Iceberg to create MTMV, it was not possible to perceive changes in partition lists and data, so only
refresh materialized view mv1 completecould be used to force full refresh.This PR obtains the partition list of Iceberg, the last update time of the partition, and the latest snapshotId of the table.
Therefore, MTMV can be partition based on Iceberg tables and perceive changes in data, automatically refreshing partitions
For now, we only support single partition column table and the partition transform must one of hour, day, month or year.
Will support Identity transform soon.
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)