SEZ9 opened a new issue, #13418: URL: https://github.com/apache/seatunnel/issues/13418
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Bug%22) and found no similar issues. ### What happened Connector names coming out of the planner are used verbatim for metadata lookups, so a name that differs from the registry id only in case, spelling or a common short form finds nothing. `seatunnel_cli/connectors.py` has keyword aliases for *routing* a request to a connector, but there is no canonical registry for resolving a name to a metadata id: `grep -n "canonicaliz\|canonical_id" seatunnel_cli/connectors.py` returns nothing on `dev`. The lookup either hits exactly or logs: ```python logger.warning(f"No metadata found for {plugin_type}:{plugin_name}") ``` Run logs from CLI benchmark runs against this code show the pattern repeatedly, for connectors whose metadata does exist under a different id: ``` No metadata found for sink:File No metadata found for transform:SQLTransform No metadata found for source:jdbc ``` When this happens the generator is given no option rules for that connector and has to guess option keys, which is exactly the situation the metadata injection exists to prevent. It also fails silently — the run continues and the only trace is a warning in the log. ### What you expected to happen A name resolved from a plan should be normalised against the connector metadata before lookup: - case and separators normalised (`jdbc` → the registry's `Jdbc`); - documented short forms and older names mapped to the current id; - on a genuine miss, report the candidates and the type conflict instead of continuing silently. The exact mapping table should be derived from the canonical ids present in the runtime metadata rather than hard-coded from these log lines. ### SeaTunnel Version dev (`a76348f1f9`) ### SeaTunnel Config ```conf Not a job config problem: this is in the CLI's connector metadata lookup. ``` ### Running Command ```shell sh bin/seatunnel-ai.sh "write the orders table to a local file" ``` ### Error Exception ```log No metadata found for sink:File ``` ### Zeta or Flink or Spark Version Not engine specific. ### Java or Scala Version Not applicable (Python CLI). ### Screenshots _No response_ ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
