You can import data from OBS to a table created in DLI.
The data to be imported has been stored on OBS.
Parameter |
Description |
Example |
---|---|---|
Databases |
Database where the current table is located. |
- |
Table Name |
Name of the current table. |
- |
Queues |
Queue where the imported data will be used |
- |
File Format |
Format of the data source file to be imported. The CSV, Parquet, ORC, JSON, and Avro formats are supported. Encoding format. Only UTF-8 is supported. |
CSV |
Path |
You can directly enter a path or click
NOTE:
The path can be a file or folder. |
obs://DLI/sampledata.csv |
Table Header: No/Yes |
This parameter is valid only when File Format is set to CSV. Whether the data source to be imported contains the table header. Click Advanced Settings and select the check box next to Table Header: No. If the check box is selected, the table header is displayed. If the check box is deselected, no table header is displayed. |
- |
User-defined Delimiter |
This parameter is valid only when File Format is set to CSV and you select User-defined Delimiter. The following delimiters are supported:
|
Default value: comma (,) |
User-defined Quotation Character |
This parameter is valid only when File Format is set to CSV and User-defined Quotation Character is selected. The following quotation characters are supported:
|
Default value: double quotation marks (") |
User-defined Escape Character |
This parameter is valid only when File Format is set to CSV and you select User-defined Escape Character. The following escape characters are supported:
|
Default value: backslash (\) |
Date Format |
This parameter is valid only when File Format is set to CSV or JSON. This parameter specifies the format of the date in the table and is valid only Advanced Settings is selected. The default value is yyyy-MM-dd. For definition of characters involved in the date pattern, see Table 3 in . |
2000-01-01 |
Timestamp Format |
This parameter is valid only when File Format is set to CSV or JSON. This parameter specifies the format of the timestamp in the table and is valid only Advanced Settings is selected. The default value is yyyy-MM-dd HH:mm:ss. For definition of characters involved in the time pattern, see Table 3 in . |
2000-01-01 09:00:00 |
Error Records Path |
This parameter is valid only when File Format is set to CSV or JSON. The parameter specifies the error data is stored in the corresponding OBS path and is valid only Advanced Settings is selected. |
obs://DLI/ |
Currently, only the first 10 records are displayed.