xiangfu0 commented on code in PR #20455:
URL: https://github.com/apache/pinot/pull/20455#discussion_r4795204028


##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/store/TextIndexUtils.java:
##########
@@ -506,7 +506,7 @@ public static Constructor<QueryParserBase> 
getQueryParserWithStringAndAnalyzerTy
       String queryParserClassName)
       throws ReflectiveOperationException {
     // Fail-fast if the query parser is specified class is not QueryParseBase 
class
-    Class<?> queryParserClass = Class.forName(queryParserClassName);
+    Class<?> queryParserClass = Class.forName(queryParserClassName, false, 
TextIndexUtils.class.getClassLoader());

Review Comment:
   `RealtimeLuceneTextIndex` (line 363) and 
`MultiColumnRealtimeLuceneTextIndex` (line 398) still carry private copies of 
this lookup that use the one-argument `Class.forName`. Neither has a caller, so 
could they be deleted here, leaving this as the only version?



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