Default PURGE_VIEW_METADATA_ON_DROP to false so views can be dropped out of the box - #5322
Default PURGE_VIEW_METADATA_ON_DROP to false so views can be dropped out of the box#5322ayushtkn wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Updates the default behavior of view drops by changing PURGE_VIEW_METADATA_ON_DROP to default to false, allowing views to be dropped under default configuration without requiring purge support.
Changes:
- Change
PURGE_VIEW_METADATA_ON_DROPdefault fromtruetofalseand document dependency onDROP_WITH_PURGE_ENABLED. - Add an integration test ensuring
dropViewsucceeds when purge-related config is not explicitly set. - Document the breaking/default behavior change in
CHANGELOG.md.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| site/content/in-dev/unreleased/configuration/config-sections/flags-polaris_features.md | Updates the documented default and adds dependency note, but introduces formatting inconsistencies. |
| polaris-core/src/main/java/org/apache/polaris/core/config/FeatureConfiguration.java | Changes the feature flag default and clarifies description text. |
| integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogIntegrationBase.java | Adds integration test coverage for dropping views with default purge behavior. |
| CHANGELOG.md | Announces the default change and provides upgrade guidance. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
9d81800 to
bc54c95
Compare
|
This PR changes
After the PR, view metadata is only purged if the operator sets both So I'm wondering: isn't the right fix to decouple both flags? @dimas-b WDYT? |
|
Thanx @adutra for the review!!!
I think they were always coupled, this PR doesn't adds that behaviour there is an existing test explicitily asserting that behaviour linked in the description of the reported issue here: To be precise this test actually asserts that they are dependent I had two solutions as mentioned in the description of the issue that either decouple them and let one deal with only tables or make the defaults sync. @dimas-b suggested to go with default change rather than tweaking the scope of the already existing config here |
Fixes: #5293
Checklist
CHANGELOG.md(if needed)site/content/in-dev/unreleased(if needed)