JNSimba opened a new pull request, #67324:
URL: https://github.com/apache/doris/pull/67324

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #66950
   
   Problem Summary: Backport #66950 to branch-4.1. Streaming Job converted 
every source JDBC column and generated target DDL before checking whether the 
mapped Doris target table already existed. An unsupported source type therefore 
prevented CREATE JOB even when the user had already created a compatible target 
table. This change resolves the mapped target table first and skips 
source-to-Doris type conversion only when that target already exists. Source 
table identity, primary-key validation, excluded-primary-key validation, and 
automatic table creation for missing targets remain unchanged.
   
   ### Release note
   
   Allow FROM source TO DATABASE streaming jobs to use precreated target tables 
without requiring FE automatic type mapping.
   
   ### Check List (For Author)
   
   - Test
       - [ ] Regression test
       - [x] Unit Test
           - `./run-fe-ut.sh --run 
org.apache.doris.job.util.StreamingJobUtilsTest`
           - `mvn checkstyle:check -pl fe-core`
       - [ ] Manual test
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. Precreated targets bypass automatic source type conversion; 
missing targets preserve the existing behavior.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   


-- 
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]

Reply via email to