chl-wxp commented on issue #10339:
URL: https://github.com/apache/seatunnel/issues/10339#issuecomment-3752889356
```mermaid
flowchart TD
%% ========= Entry =========
A[Start: Non-Relational Source Initialization] --> B{Is 'schema' defined
in config?}
%% ========= Step 1: Local Schema =========
B -- Yes --> S1[Use embedded schema from config]
S1 --> Z[Build CatalogTable and finish]
%% ========= Step 2: No local schema =========
B -- No --> C{Is Metalake configured in env?}
%% ========= Step 2a: Seatunnel env =========
C -- Yes --> E1[Read metalake_enabled / metalake_type / metalake_url from
env]
%% ========= Step 3: OS env =========
C -- No --> D{Are Metalake variables in OS env?}
D -- Yes --> E2[Read metalake_enabled / metalake_type / metalake_url from
OS env]
%% ========= Step 4: Connector config =========
D -- No --> E3[Read metalake_type / metalake_url from connector config]
%% ========= Unified metadata path =========
E1 --> F
E2 --> F
E3 --> F
%% ========= Schema reference =========
F{Is schema_path or schema_url defined?}
F -- schema_url --> G1[Use schema_url directly]
F -- schema_path --> G2[Compose full schema_url using metalake_url +
schema_path]
%% ========= Step 5 =========
G1 --> H
G2 --> H
H[Select REST detector by metalake_type]
%% ========= Step 6 =========
H --> I[Call REST API and get responseBody]
I --> J[Type Mapper converts response to internal types]
J --> K[Build CatalogTable from mapped schema]
%% ========= End =========
K --> Z[Schema ready for Source execution]
```
--
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]