bharos opened a new pull request, #10013:
URL: https://github.com/apache/gravitino/pull/10013

   
   
   <!--
   1. Title: [#<issue>] <type>(<scope>): <subject>
      Examples:
        - "[#123] feat(operator): support xxx"
        - "[#233] fix: check null before access result in xxx"
        - "[MINOR] refactor: fix typo in variable name"
        - "[MINOR] docs: fix typo in README"
        - "[#255] test: fix flaky test NameOfTheTest"
      Reference: https://www.conventionalcommits.org/en/v1.0.0/
   2. If the PR is unfinished, please mark this PR as draft.
   -->
   
   ### What changes were proposed in this pull request?
   
   Fix a bug in the view entity backend where `schema_id` was not being updated 
when a view is renamed across namespaces (schemas).
   
   ### Why are the changes needed?
   
   
   When a view is renamed from one schema to another (e.g., `schema1.myview` → 
`schema2.myview`), the `schema_id` foreign key in the `view_meta` table 
remained unchanged. This caused:
   - Entity lookups by the new `NameIdentifier` to fail (wrong schema_id)
   - Ownership queries to return empty results
   - Can cause authorization checks to fail
   
   
   Fix: #9815 
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. This fixes a bug in internal metadata management that would have caused 
errors during cross-namespace view renames.
   
   ### How was this patch tested?
   
   NA
   


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

Reply via email to