mrhhsg opened a new pull request, #70961:
URL: https://github.com/apache/doris/pull/70961
### What problem does this PR solve?
Issue Number: None
Related PR: #70794 (cherry-pick to `branch-4.2`)
`INSERT OVERWRITE ... PARTITION(*)` can incorrectly report that a partition
item was dropped concurrently when the target table is unpartitioned. Temporary
partitions of an unpartitioned table legitimately have no `PartitionItem` or
boundary keys, but the shared FE snapshot check previously rejected every null
item.
This backport allows a null item only for `UNPARTITIONED` tables. It
preserves the existing missing-Partition guard and missing-item checks for
RANGE/LIST tables. There are no protocol or persisted-metadata changes.
The complete source change is included: FE snapshot coverage for valid
unpartitioned temporary partitions and RANGE/LIST metadata checks, plus
full-column and partial-column auto-detect overwrite regression coverage.
Existing regression expected output is unchanged. Test imports are adapted to
the existing branch-4.2 framework.
### Release note
Fix auto-detect `INSERT OVERWRITE ... PARTITION(*)` on unpartitioned tables
incorrectly failing with a concurrent partition-item removal error.
### Validation
- `./build.sh --be --fe -j 48`: FE/BE build passed with an isolated
third-party overlay and a reduced Java-extension configuration.
- `./run-fe-ut.sh --run
'org.apache.doris.service.FrontendServiceImplTest#testReplacePartitionSnapshotAllowsUnpartitionedTempPartition+testReplacePartitionSnapshotPreservesPartitionItemChecks+testCreatePartitionReturnsRetryErrorWhenResultPartitionIsMissing'`:
3 tests passed with default coverage settings; no failures, errors, or skips.
- `MAVEN_OPTS='-Xmx12g -Djacoco.skip=true' ./run-fe-ut.sh --run
org.apache.doris.service.FrontendServiceImplTest`: all 28 tests passed; no
failures, errors, or skips.
- SQL regression: `test_iot_unpartitioned_nereids` passed using an isolated
regression configuration on a local single-FE/single-BE shared-nothing cluster:
1 suite, 0 failed/fatal/skipped. Both full-column and partial-column
`PARTITION(*)` statements executed.
- `(cd fe && mvn -pl fe-core -am checkstyle:check)`: passed with no
violations.
- Diff whitespace check: passed.
Validation limits: coverage-enabled whole-class attempts did not pass; the
final retry failed an authentication assertion also reproduced against the
unmodified target base with the same JMockit/JaCoCo setup. The focused tests
passed with coverage enabled, and disabling only the optional coverage agent
allowed all 28 tests to pass without skipping tests. The local SQL run used
`enable_java_support=false` with the reduced Java-extension build; Java
UDF/HDFS integrations, Cloud mode, multiple BEs, and mixed-version deployments
were not validated.
### Check List (For Author)
- Test:
- [x] Unit Test
- [x] Regression test
- Behavior changed:
- [x] Yes. Valid unpartitioned auto-detect overwrite no longer raises a
false concurrent-removal error; partitioned-table metadata checks are 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]