shounakmk219 opened a new pull request, #12765:
URL: https://github.com/apache/pinot/pull/12765
# Description
API to delete the given database which effectively deletes all the tables
under the given database.
The API has a sync behaviour which means partial database deletion is
possible in case of failures.
Server side failures are handled silently and further table deletion is
resumed. The response will have appropriate information regarding the partial
database deletion.
**Endpoint** : `/databases/<databaseName>`
**Query param** : `dryRun` , _required_ = `true`
**Method** : `DELETE`
**Sample output** :
```
{
"dryRun": false,
"tablesInDatabase": [
"db1.table1_REALTIME",
"db1.table2_OFFLINE"
],
"deletedTables": [
"db1.table1_REALTIME"
],
"partiallyDeleted": true
}
```
As the API is of idempotent nature client can repeatedly call the API
in-case the deletion has occurred partially
# labels
`feature` `release-notes`
# release-notes
API to delete database and all its underlying tables
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]