sajjad-moradi opened a new pull request #6331:
URL: https://github.com/apache/incubator-pinot/pull/6331
## Description
Added a GET endpoint on Controller to return table creation time.
For one of our clusters, some admin tools need to delete the tables two
weeks after the creation time. Therefore the table creation time API is exposed
in this PR.
## Testing Done
Ran `quick-start-batch.sh` locally and hit the endpoint:
```bash
➜ ~ curl 'localhost:9000/tables/baseballStats/creationTime?type=offline'
1607392187128
➜ ~ date -r 1607392187
Mon Dec 7 17:49:47 PST 2020
➜ ~ curl 'localhost:9000/tables/baseballStats/creationTime'
{"code":400,"error":"Illegal table type: null"}
```
Here is the ZooInspector snapshot for the same table which verifies the
creation time returned by the endpoint:

----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]