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

   ### What problem does this PR solve?
   
   Issue Number: None
   Related PR: apache/doris#70967
   PR Type: Bugfix
   
   Adapt apache/doris#70967 at `08e925bb3af62d6bea8563ee5cbc251f16e0b078` 
(including both commits) to `branch-4.1`.
   
   Iceberg REST services can reject purge requests while allowing tables to be 
unregistered. Add `iceberg.rest.drop-with-purge-enabled`, defaulting to `true`. 
Setting it to `false` unregisters tables while retaining their data and 
metadata files, including table drops performed by `DROP DATABASE FORCE`.
   
   ### Details
   
   - Adapt the connector-based implementation to the release branch's 
`IcebergRestProperties`, `IcebergExternalCatalog` and `IcebergMetadataOps` APIs.
   - Validate the boolean on CREATE/ALTER statements without adding validation 
to replay property binding.
   - Apply the REST-only choice in the shared table-drop path used by direct 
DROP and forced database cascades. Preserve view drops, error propagation and 
non-REST behavior.
   - Carry over both regression commits, including physical object checks and 
cleanup of previous-run retained objects. Adapt unit coverage to the legacy 
metadata interfaces.
   
   ### Testing
   
   - Repository `run-fe-ut.sh` compiles the target FE and passes 114 tests 
across the DROP, REST property and legacy metadata suites; 3 pre-existing 
disabled integration tests are skipped. Zero failures or errors.
   - Baseline tests reproduced the always-purge REST request, HTTP 403 and 
missing boolean validation before the fix. The adapted DROP suite passes all 
eight tests afterward.
   - FE Checkstyle, Groovy syntax, diff whitespace checks (allowing generated 
result EOF separators), full diff self-review and sensitive-information checks 
pass.
   - Both regression file blobs match the source PR's final revision exactly, 
including its repeated-run object cleanup.
   - SQL integration regression and live Polaris were not rerun on this target 
branch; that coverage remains for CI.
   
   ### Release note
   
   Allow Iceberg REST catalogs to unregister tables without deleting their 
files by setting `iceberg.rest.drop-with-purge-enabled=false`. The option also 
applies to `DROP DATABASE FORCE` and defaults to `true` for compatibility.
   


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