[fix](fe) Derive table stream schema from base table - #67130
Open
luwei16 wants to merge 1 commit into
Open
Conversation
### What problem does this PR solve? Issue Number: close apache#67109 Related PR: N/A Problem Summary: Table Streams persisted a copy of their base table schema at creation time. Light schema changes updated the base table but left Stream metadata stale. Keep the persisted Stream schema empty, derive every Stream schema API from the current base table under its read lock, and fail explicitly when the base table is unavailable. ### Release note Table Stream metadata now follows the current base table schema after supported schema changes. ### Check List (For Author) - Test: Unit Test - `CreateTableStreamTest` - `ExplainTableStreamPlanTest` - `TableStreamBaseTableInfoTest` - Behavior changed: Yes (Table Stream schema metadata is derived dynamically from the base table.) - Does this need documentation: No
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
Author
|
run buildall |
Contributor
TPC-H: Total hot run time: 17082 ms |
Contributor
TPC-DS: Total hot run time: 82782 ms |
Contributor
ClickBench: Total hot run time: 14.78 s |
Contributor
FE Regression Coverage ReportIncrement line coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: close #67109
Related PR: N/A
Problem Summary: Table Streams persisted a copy of their base table schema at creation time. Light schema changes updated the base table but left Stream metadata stale. Keep the persisted Stream schema empty, derive every Stream schema API from the current base table under its read lock, and fail explicitly when the base table is unavailable.
Release note
Table Stream metadata now follows the current base table schema after supported schema changes.
Check List (For Author)
CreateTableStreamTestExplainTableStreamPlanTestTableStreamBaseTableInfoTest