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

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: #70794
   
   Cherry-picked from #70794 (8effcaa20f972c9b91d486346d32a3b2df3ae5cc) to 
`branch-4.1`.
   
   Problem Summary:
   
   Auto-detect overwrite (`INSERT OVERWRITE ... PARTITION(*)`) on an 
unpartitioned table can incorrectly report that a partition item was dropped 
concurrently. Unpartitioned temporary partitions legitimately have no 
`PartitionItem`, but the shared FE snapshot helper rejects every null item.
   
   ### Changes
   
   - Allow a null partition item only for `UNPARTITIONED` tables. Preserve 
missing-`Partition` checks, RANGE/LIST missing-item errors, table locking, and 
the existing partition-key serialization behavior.
   - Port FE tests using real overwrite temporary-partition metadata, including 
RANGE/LIST boundaries and missing-item protection. Retain branch-4.1 imports 
and adapt the assertions to JUnit 4.
   - Update the existing unpartitioned overwrite regression to use 
`PARTITION(*)` for repeated full-column and partial-column overwrites. Expected 
rows are unchanged.
   
   No RPC or persisted-format changes are required.
   
   ### Testing
   
   - `./run-fe-ut.sh --run org.apache.doris.service.FrontendServiceImplTest`: 
**24 tests passed**, 0 failures, errors, or skips.
   - Focused Maven Checkstyle for the changed Java files: **passed**.
   - `./build.sh --be --fe -j 48`: **passed**, including BE Release and FE 
packaging.
   - Regression framework compilation: **passed**.
   - `./run-regression-test.sh --conf 
output/local-regression/regression-conf-16600.groovy --run -d 
insert_overwrite_p0 -s test_iot_unpartitioned_nereids -parallel 1`: **1 suite 
passed**, 0 failed, fatal, or skipped scripts.
   - `git diff --check`: **passed**.
   
   The SQL regression ran on a local single-FE/single-BE native-table setup 
with Java support disabled. Cloud deployments, mixed-version execution, and 
Java extensions were not tested.
   
   ### Release note
   
   Fix auto-detect overwrite incorrectly reporting a concurrent partition drop 
for unpartitioned tables.
   
   ### Check List (For Author)
   
   - Test:
     - [x] Regression test
     - [x] Unit Test
   - Behavior changed:
     - [x] Yes. Unpartitioned auto-detect overwrite no longer fails on a 
legitimate missing partition item; partitioned-table validation is unchanged.
   - Does this need documentation?
     - [x] 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]

Reply via email to