Job Interface¶
.png)
Simple job rest API¶
Call this API by sending the SQL files and get the result includes the data lineage. SQLFlow job supports both of multiple files and zip archive file.
1 |
|
Example in Curl
1 |
|
/submitUserJob¶
Note:
- -H "Content-Type:multipart/form-data" is required
- Add @ before the file path
Sample response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Please records the jobId field.
2. Get job status
1 |
|
Example in Curl
1 |
|
/displayUserJobSummary¶
Sample response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
1 |
|
Example in Curl
1 |
|
/displayUserJobsSummary¶
Sample Response:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|
3. Export data lineage
When the job status is success, you can export the data lineage in json, csv, graphml formats
1 |
|
Example in Curl
1 |
|
/exportLineageAsJson¶
Note:
If you want to get table to table relation, please add option -F "tableToTable=true"
Sample Response is a file in Json format:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
|
1 |
|
Example in Curl
1 |
|
/exportFullLineageAsCsv¶
Note:
If you want to get table to table relation, please add option -F "tableToTable=true"
If you want to change csv delimiter, please add option -F "delimiter=\
"
- 3.3 Export data lineage in graphml format with which you can view the lineage graph at yEd Graph Editor
1 |
|
Example in Curl
1 |
|
/exportLineageAsGraphml¶
Note:
If you want to get table to table relation, please add option -F "tableToTable=true"
Regular job rest API¶
1. Submit a regular job
Call this API by sending the SQL files and get the result includes the data lineage. SQLFlow job supports both of multiple files and zip archive file.
Set incremental=true If the job is incremental.
- jobId should be null for the first submit and please note down the jobId field from response message
- jobId cannot be null for next submit. Give the jobId which is returned in the first submit response.
1 |
|
/submitPersistJob¶
Example in Curl
1 |
|
Incremental submit in Curl
1 |
|
Note:
- -H "Content-Type:multipart/form-data" is required
- Add @ before the file path
Return data:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
|
Please records the jobId field for the further usage.