SQL Job Management
SQL jobs allow you to execute SQL statements entered in the SQL job editing window, import data, and export data.
SQL job management provides the following functions:
In addition, you can click Quick Links to switch to the details on User Guide.
Job Management page
On the Overview page, click SQL Jobs to go to the SQL job management page. Alternatively, you can click Job Management > SQL Jobs. The job list displays all SQL jobs. If there are a large number of jobs, they will be displayed on multiple pages. You can switch to the specified page as required. DLI allows you to view jobs in all statuses. By default, jobs in the job list are displayed in descending order according to the job creation time, with the most recently created jobs displayed at the top.
Parameter |
Description |
---|---|
Queue |
Name of the queue to which a job belongs |
Created |
Time when a job is created. Jobs can be displayed in ascending or descending order of the job creation time. |
Job Type |
Job type. The following values are available:
|
Status |
Job status. The following values are available:
|
Statement |
Displays the SQL statements for a job as well as descriptions about export and table creation operations. You can click to copy the corresponding statement. |
Duration |
Running duration of a job |
Operation |
|
Searching for a Job
On the SQL Jobs page, you can filter jobs by using the following methods.
- Select a queue name.
- Set the date range.
- Enter the statement or job ID.
- Select the creation time in ascending or descending order.
- Select a job type.
- Select a job status
- Select the job execution duration in ascending or descending order.
Viewing Job Details
On the SQL Jobs page, you can click in front of a job record to view details about the job.
Job details vary with job types. The following describes how to load data, create table, and select job.
- load data (job type: IMPORT) includes the following information: Queue name, job ID, creation time, job type, job status, execution statement, running duration, scanned data, execution user, number of results, number of scanned data records, number of error records, database name, table name, file format, table header, and quoted characters, separator, data source path, escape character, import start time, import end time, date format, and timestamp format.
- create table (job type: DDL) includes the following information: Queue name, job ID, creation time, job type, job status, execution statement, running duration, scanned data, and execution user.
- select (job type: QUERY) includes the following information: Queue name, job ID, creation time, job type, job status, execution statement, running duration, number of results (successful and exported results), scanned data, execution user, and result status (running successfully, viewing results, running failure, and failure cause).
Terminating a Job
On the SQL Jobs page, you can click Terminate in the Operation column to stop a submitting or running job.
Exporting Query Results
You can export results on the SQL Jobs page or the SQL Editor page.
- On the Job Management > SQL Jobs page, you can click More < Export Result in the Operation column to export the query result.
- After the query statement is successfully executed on the SQL Editor page, click Export Result on the right of the View Result tab page to export the query result.
If no column of the numeric type is displayed in the query result, the result cannot be exported.
Parameter |
Description |
---|---|
File Format |
Format of the exported query result file. Formats other than JSON will be supported in later versions. |
Queue |
Select a queue. |
Compression Format |
Compression format of the data to be exported. The following options are supported:
|
Storage Path |
Enter or select an OBS path to store the result.
NOTE:
|
Export Mode |
Mode for saving the exported query result data.
|
Number of Results |
Number of exported query results. If no value is entered or the value is 0, all results are exported. |
Advanced Settings |
Table Header: No/Yes Whether the data to be exported contains table headers. This parameter is invalid only when Export Format is set to json. Formats other than JSON will be supported in later versions. Click Advanced Settings and select the check box next to Table Header: No. If the check box is not selected, the table header is displayed. If the check box is deselected, no table header is displayed. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot