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

   ### What changes were proposed in this pull request?
   
   Reorder validation and normalization in `CapabilityHelpers` so 
`applyNameSpecification`
   runs on the original name before `applyCaseSensitiveOn*`/`normalizeName`. 
Remove the
   redundant re-normalization of identifiers already returned by 
`listSchemas`/`listTables`
   in `SchemaNormalizeDispatcher`/`TableNormalizeDispatcher`.
   
   ### Why are the changes needed?
   
   For catalogs whose name folding depends on the name's original form (e.g. a 
quoted
   identifier keeps case/spaces, an unquoted one gets folded), validating after
   normalization checks the wrong form of the name. Similarly, re-applying 
`normalizeName`
   to identifiers a catalog already returned in canonical form isn't guaranteed 
to be
   idempotent for such catalogs and can corrupt an already-correct name.
   
   Fix: #12097
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Added a unit test; existing core module tests pass.


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