Tables - Load Table
참고
This API is in preview.
Starts a load table operation and returns the operation status URL in the response location header.
This API supports long running operations (LRO).
Write permission to the lakehouse item.
Lakehouse.ReadWrite.All
This API supports the Microsoft identities listed in this section.
Identity | Support |
---|---|
User | Yes |
Service principal and Managed identities | Yes |
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/lakehouses/{lakehouseId}/tables/{tableName}/load
Name | In | Required | Type | Description |
---|---|---|---|---|
lakehouse
|
path | True |
string (uuid) |
The lakehouse item ID. |
table
|
path | True |
string pattern: ^(?=[0-9]*[a-zA-Z_])[a-zA-Z0-9_]{1,256}$ |
The table name. |
workspace
|
path | True |
string (uuid) |
The workspace ID. |
Name | Required | Type | Description |
---|---|---|---|
pathType | True |
The type of |
|
relativePath | True |
string pattern: ^Files(\/[\p{L}\w]{1}([ \p{L}\w\.-]*[\p{L}\w\.-]{1})*)*$ |
The relative path of the data file or folder. |
fileExtension |
string pattern: ^[a-zA-Z0-9_-]{1,16}$ |
The file extension of the data file. |
|
formatOptions | FileFormatOptions: |
Abstract type of data file format options. |
|
mode |
The load table operation mode, overwrite or append. Additional mode types may be added over time. |
||
recursive |
boolean |
Indicates whether to search data files recursively or not, when loading a table from a folder. |
Name | Type | Description |
---|---|---|
202 Accepted |
Request accepted, load table operation is in progress. Headers
|
|
Other Status Codes |
Common error codes:
|
Sample request
POST https://api.fabric.microsoft.com/v1/workspaces/f089354e-8366-4e18-aea3-4cb4a3a50b48/lakehouses/41ce06d1-d81b-4ea0-bc6d-2ce3dd2f8e87/tables/abc123/load
{
"relativePath": "Files/abc/abc123.csv",
"pathType": "File",
"mode": "Overwrite",
"recursive": false,
"formatOptions": {
"format": "Csv",
"header": true,
"delimiter": ","
}
}
Sample response
Location: https://api.fabric.microsoft.com/v1/operations/abcdef00-9d7e-469a-abf1-fca847a0ea69
x-ms-operation-id: abcdef00-9d7e-469a-abf1-fca847a0ea69
Retry-After: 30
Name | Description |
---|---|
Csv |
CSV format options for CSV files. |
Error |
The error related resource details object. |
Error |
The error response. |
Error |
The error response details. |
Load |
Represents a load table operation request. |
Mode |
The load table operation mode, overwrite or append. Additional mode types may be added over time. |
Parquet |
Format options for Parquet files. |
Path |
The type of |
CSV format options for CSV files.
Name | Type | Description |
---|---|---|
delimiter |
string pattern: ^[^\(\)\[\]\{\}'""]{0,8}$ |
The delimiter of CSV file. |
format | string: |
Data file format name. Additional file format types may be added over time. |
header |
boolean |
This property indicates whether the CSV data file contains a header line or not. |
The error related resource details object.
Name | Type | Description |
---|---|---|
resourceId |
string |
The resource ID that's involved in the error. |
resourceType |
string |
The type of the resource that's involved in the error. |
The error response.
Name | Type | Description |
---|---|---|
errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
message |
string |
A human readable representation of the error. |
moreDetails |
List of additional error details. |
|
relatedResource |
The error related resource details. |
|
requestId |
string |
ID of the request associated with the error. |
The error response details.
Name | Type | Description |
---|---|---|
errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
message |
string |
A human readable representation of the error. |
relatedResource |
The error related resource details. |
Represents a load table operation request.
Name | Type | Description |
---|---|---|
fileExtension |
string pattern: ^[a-zA-Z0-9_-]{1,16}$ |
The file extension of the data file. |
formatOptions | FileFormatOptions: |
Abstract type of data file format options. |
mode |
The load table operation mode, overwrite or append. Additional mode types may be added over time. |
|
pathType |
The type of |
|
recursive |
boolean |
Indicates whether to search data files recursively or not, when loading a table from a folder. |
relativePath |
string pattern: ^Files(\/[\p{L}\w]{1}([ \p{L}\w\.-]*[\p{L}\w\.-]{1})*)*$ |
The relative path of the data file or folder. |
The load table operation mode, overwrite or append. Additional mode types may be added over time.
Value | Description |
---|---|
Append |
load table in append mode. |
Overwrite |
load table in overwrite mode. |
Format options for Parquet files.
Name | Type | Description |
---|---|---|
format | string: |
Data file format name. Additional file format types may be added over time. |
The type of relativePath
, either file or folder. Additional PathType
types may be added over time.
Value | Description |
---|---|
File |
load table from file. |
Folder |
load table from folder. |