Github user manishgupta88 commented on the issue:
https://github.com/apache/carbondata/pull/1416
@jackylk ..This PR will provide an event listener interface using which you
can register the events based on the need of your operations. For example
before dropping a table you need to record the information from that table that
can be used for clean up of resources/caches used by that table on executor or
driver side. In this case you can register an event PreDropEventListener which
will perform the required task and add an event which will triggered just
before drop.
---