wenjin272 opened a new issue, #864: URL: https://github.com/apache/flink-agents/issues/864
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description Currently, when determining whether a resource is a Python resource during Java-based agent plan compilation, the framework loads the resource's implementation class via reflection. ``` if (PythonResourceWrapper.class.isAssignableFrom( Class.forName( descriptor.getClazz(), true, Thread.currentThread().getContextClassLoader()))) { provider = new PythonResourceProvider(name, type, descriptor); } else { provider = new JavaResourceProvider(name, type, descriptor); } ``` Currently, this requires resource dependencies to exist at the compile stage, but we actually only need them at runtime. Since Python resources must declare the `pythonClazz` argument, we can use this parameter to determine whether a resource is a Python resource. ### Are you willing to submit a PR? - [ ] I'm willing to submit a PR! -- 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]
