abhishekbafna commented on PR #14844:
URL: https://github.com/apache/pinot/pull/14844#issuecomment-2652803995

   > I'm not able to find the related change in controller and broker code. Can 
you point me to the class changed?
   
   For both table creation/update and querying, the groovy static analysis is 
applied during the script `parse` step. This happens when the 
`GroovyFunctionEvaluator` object is initialised.
   ```_script = createSafeShell(_binding, 
groovyStaticAnalyzerConfig).parse(scriptText);```
   
   For the table create/update it happens in the `controller` and for query is 
happens in the `server nodes`. Attaching screenshots.
   
   The `GroovyStaticAnalyzerConfig` is a static parameter which init during the 
service start using `configureGroovySecurity` method.
   
   When the groovy security config is updated, the update happens through the 
controller API so controller set it using 
`GroovyFunctionEvaluator.setConfig(groovyConfig);` using the POST API call.
   
   For the server, updates are applied using the config change listener 
`GroovyConfigChangeListener`.
   
   Query:
   <img width="1372" alt="QC Error Message" 
src="https://github.com/user-attachments/assets/3d718cfe-695f-43cf-9c3a-8f4914f551bf";
 />
   
   <img width="1138" alt="Query - Call Stack" 
src="https://github.com/user-attachments/assets/285a5e6a-4649-416d-8473-ecbd85f34a2f";
 />
   
   Controller: 
   
   <img width="678" alt="Controller Table API Call Stack" 
src="https://github.com/user-attachments/assets/70b9850b-0a6f-48b7-8165-75cd8e768ca5";
 />
   
   
   


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to