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:
   
![image](https://user-images.githubusercontent.com/8548220/101429151-18223e00-38b7-11eb-9a69-b111a6c77012.png)
   
   


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to