tigergraph__create_loading_job
Create a data loading job in TigerGraph from structured file configurations, specifying node and edge mappings. Optionally run the job immediately and drop it after execution.
Instructions
Create a loading job from structured configuration. The job defines how to load data from files into vertices and edges. Each file config specifies: file alias, separator, header, EOL, and mappings. Node mappings define which columns map to vertex attributes. Edge mappings define source/target columns and edge attributes. Optionally run the job immediately and drop it after execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | List of file configurations. Each file must have a 'file_alias' and 'node_mappings' and/or 'edge_mappings'. Example: [{'file_alias': 'f1', 'node_mappings': [...]}] | |
| profile | No | Connection profile name. Omit to use the active default profile. Use 'list_connections' to see available profiles. | |
| run_job | No | If True, run the loading job immediately after creation. | |
| job_name | Yes | Name for the loading job. | |
| graph_name | No | Name of the graph. If not provided, uses default connection. | |
| drop_after_run | No | If True, drop the job after running (only applies if run_job=True). |