luwei16 opened a new pull request, #66683:
URL: https://github.com/apache/doris/pull/66683
### What problem does this PR solve?
Issue Number: None
Related PR: None
Problem Summary: CREATE STREAM validated the base table with the stream
object default MIN_DELTA type before parsing the requested stream properties.
This incorrectly rejected valid APPEND_ONLY and DETAIL streams on UNIQUE or
PRIMARY ROW-binlog tables that did not meet MIN_DELTA historical-value
requirements. Parse and apply the stream properties before performing
type-dependent base-table validation, while preserving the validation for real
MIN_DELTA streams.
### Release note
Fix CREATE STREAM so APPEND_ONLY and DETAIL streams are validated using
their requested type instead of the default MIN_DELTA type.
### Check List (For Author)
- Test:
- Unit Test: ./run-fe-ut.sh --run
org.apache.doris.catalog.CreateTableStreamTest,org.apache.doris.cloud.datasource.CloudInternalCatalogTableStreamTest
(passed: 9 tests)
- Regression test: ./run-regression-test.sh --run -d table_stream_p0 -s
test_create_append_only_stream_without_historical_value (passed: 1 suite)
- Behavior changed: Yes. Valid APPEND_ONLY and DETAIL streams are no longer
rejected by MIN_DELTA-only prerequisites.
- Does this need documentation: No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]