forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
18 KiB
18 KiB
Importing Data to the Table
You can import data from OBS to a table created in DLI.
Precautions
- Only one path can be specified during data import. The path cannot contain commas (,).
- To import data in CSV format to a partitioned table, place the column to be partitioned in the last column of the data source.
- You are advised not to concurrently import data in to a table. If you concurrently import data into a table, there is a possibility that conflicts occur, leading to failed data import.
- The imported file can be in CSV, Parquet, ORC, JSON, and Avro format. The encoding format must be UTF-8.
Prerequisites
The data to be imported has been stored on OBS.
Procedure
- You can import data on either the Data Management page or the SQL Editor page.
- To import data on the Data Management page:
- On the left of the management console, choose Data Management > Databases and Tables.
- Click the name of the database corresponding to the table where data is to be imported to switch to the table management page.
- Locate the row where the target table resides and choose More > Import in the Operation column. The Import dialog box is displayed.
- To import data on the SQL Editor page:
- On the left of the management console, click SQL Editor.
- In the navigation tree on the left of SQL Editor, click Databases to see all databases. Click the database where the target table belongs. The table list is displayed.
- Click
on the right of the table and choose Import from the shortcut menu. The Import page is displayed.
- To import data on the Data Management page:
- In the Import dialog box, set the parameters based on Table 1.
- Click OK.
- You can view the imported data in either of the following ways:
- Choose Data Management > Databases and Tables in the navigation pane of the console. Locate the row that contains the database where the target table belongs and click More > View Properties in the Operation column. In the displayed dialog box, click the Preview tab to view the imported data.
- On the Databases tab of the SQL Editor, click the database name to go to the table list. Click
on the right of a table name and choose View Properties from the shortcut menu. In the displayed dialog box, click Preview to view the imported data.
- (Optional) View the status and execution result of the importing job on the Job Management > SQL Jobs page.
Parent topic: Databases and Tables

