Uh oh!
There was an error while loading. Please reload this page.
[Fix](StreamingJob) fix create table issues when create streaming job - #59828
Conversation
hello-stephen
commented
Jan 13, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
JNSimba
commented
Jan 13, 2026
run buildall |
doris-robot
commented
Jan 13, 2026
TPC-H: Total hot run time: 31878 ms |
doris-robot
commented
Jan 13, 2026
TPC-DS: Total hot run time: 175143 ms |
There was a problem hiding this comment.
Pull request overview
This PR fixes three issues when creating tables for streaming jobs:
- VARCHAR column lengths are now multiplied by 3 to accommodate multi-byte character encodings
- Columns are reordered to place primary key columns first, in the order specified
- Unsupported column types now trigger an error with a clear message
Changes:
- Enhanced
getColumnsmethod to multiply varchar lengths by 3, validate against unsupported types, and sort columns by primary key order - Added comprehensive unit tests covering varchar conversion, primary key sorting, and edge cases
- Updated regression test to verify varchar length multiplication (200 * 3 = 600)
- Added logging and toString support for commit offset operations
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| fe/fe-core/src/main/java/org/apache/doris/job/util/StreamingJobUtils.java | Core logic changes: varchar length multiplication by 3, unsupported type validation, and primary key-based column sorting |
| fe/fe-core/src/test/java/org/apache/doris/job/util/StreamingJobUtilsTest.java | New comprehensive unit tests for getColumns method covering varchar conversion, primary key sorting, and edge cases |
| regression-test/suites/job_p0/streaming_job/cdc/test_streaming_mysql_job.groovy | Updated assertion to verify varchar(200) becomes varchar(600), added table3 cleanup |
| fe/fe-core/src/main/java/org/apache/doris/httpv2/rest/StreamingJobAction.java | Added logging for offset commits and @tostring annotation for better debugging |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
JNSimba
commented
Jan 13, 2026
run buildall |
JNSimba
commented
Jan 13, 2026
run buildall |
doris-robot
commented
Jan 13, 2026
TPC-H: Total hot run time: 31030 ms |
doris-robot
commented
Jan 13, 2026
TPC-DS: Total hot run time: 173039 ms |
JNSimba
commented
Jan 13, 2026
run buildall |
doris-robot
commented
Jan 13, 2026
TPC-H: Total hot run time: 31423 ms |
doris-robot
commented
Jan 13, 2026
TPC-DS: Total hot run time: 172158 ms |
JNSimba
commented
Jan 13, 2026
run cloud_p0 |
PR approved by anyone and no changes requested. |
PR approved by at least one committer and no changes requested. |
Uh oh!
There was an error while loading. Please reload this page.
…treaming job apache#59828 (apache#59853) Cherry-picked from apache#59828 Co-authored-by: wudi <wudi@selectdb.com>
What problem does this PR solve?
Related PR: #58898
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)