wenjin272 commented on PR #1454: URL: https://github.com/apache/flink-agents/pull/1454#issuecomment-7184706286
Could we put this validation directly in the existing `resolveClazz` / `resolve_clazz` methods, without adding `isKnownAlias` and `isKnownAliasForOtherLanguage`? The resolution rules could be: 1. If the name matches an alias for the given resource type and language, return the mapped class name. 2. Otherwise, if it contains `.`, pass it through as a fully-qualified class name. 3. Otherwise, reject it as an unknown alias. This would catch both cross-language alias misuse and typos such as `ollmaa`, while keeping validation and resolution in one place. I don't think we need to support Java classes in the default package here; we can require custom Java classes to use a package-qualified name. Please apply the same rules in both languages and cover unknown aliases, aliases belonging only to the other language, and custom fully-qualified class names in the tests. -- 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]
