airborne12 commented on code in PR #67918:
URL: https://github.com/apache/doris/pull/67918#discussion_r4004812865


##########
fe/fe-core/src/main/java/org/apache/doris/indexpolicy/IndexPolicyMgr.java:
##########
@@ -213,7 +263,8 @@ public void createIndexPolicy(boolean ifNotExists, String 
policyName,
     public IndexPolicy getPolicyByName(String name) {
         readLock();
         try {
-            return nameToIndexPolicy.get(normalizeKey(name));
+            IndexPolicy exactPolicy = 
exactNameToIndexPolicy.get(exactKey(name));

Review Comment:
   Fixed in 6ae082bea365. Exact-name lookup now takes precedence throughout 
validation, DROP selection, dependency checks, FE-to-BE policy synchronization, 
and BE analyzer construction. Inverted-index property canonicalization retains 
the resolved custom policy spelling instead of lowercasing it.
   
   Coverage includes FE validation and DROP behavior, exact persisted analyzer 
and normalizer properties, and BE emitted terms for both colliding tokenizer 
spellings in both replay orders. The targeted FE tests, ASAN BE binding test, 
isolated regression suite (twice), and merged-tree formatter and Checkstyle 
preflight 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to