chl-wxp commented on issue #10339:
URL: https://github.com/apache/seatunnel/issues/10339#issuecomment-3752705420

   ```mermaid
   
   flowchart TD
     A["Parse job config"] --> B{"Has schema_url or schema_path"}
     B -- "No" --> C["Use legacy schema config or connector defaults"]
     C --> Z["Submit job"]
   
     B -- "Yes" --> D["Resolve metalake config"]
     D --> D1["From env metalake settings"]
     D1 --> D2["Else from OS env metalake settings"]
     D2 --> D3["Else from connector metalake settings"]
   
     D3 --> E{"Has schema_url"}
     E -- "Yes" --> F["Final url equals schema_url"]
     E -- "No" --> G["Parse schema_path into three parts"]
     G --> H{"Has metalake_url"}
     H -- "No" --> H1["Fail missing metalake_url for schema_path"]
     H -- "Yes" --> I["Build final url from base url and schema_path"]
   
     F --> J["Select detector by metalake_type"]
     I --> J
   
     J --> K{"Detector exists"}
     K -- "No" --> K1["Fail unknown metalake_type"]
     K -- "Yes" --> L["HTTP fetch schema from final url"]
   
     L --> M{"HTTP success"}
     M -- "No" --> M1["Fail http error or timeout"]
     M -- "Yes" --> N["Map response to SeaTunnel types"]
   
     N --> O{"Mapping success"}
     O -- "No" --> O1["Fail parse or type mapping error"]
     O -- "Yes" --> P["Build CatalogTable"]
     P --> Z["Submit job"]
   
   
   ```


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

Reply via email to