Check if the data set is ready for data upload
The data set must be ready to upload the data. To check the state of the data set, perform the following HTTP request.
POST "https://<hostname>/mining/api/pub/dataIngestion/v1/dataSets/<data set>/readyForIngestion"
You must send a request body to the server in the following form (here with sample data):
{
"dataUploadTargets": [
{
"fullyQualifiedName": "default.table_a"
},
{
"fullyQualifiedName": "default.table_b"
}
]
}
If the data set is ready, you receive a positive response. Otherwise, the response is negative and contains the corresponding reason.
{
"ready": false,
"cause": {
"code": "INR1001",
"message": "The data set is currently being processed"
}
}