Hive metastore event listeners detect what occurs when an event is executed in Hive. You can also override MetaStorePreEventListener and provide your own implementation.
I had the code to create sparklines inside a Pandas DataFrame, but I had to tweak it a bit to get it to play nicely with Python 3.6. Here's what I did.
Learn how to connect to an ODBC Driver from Google Apps Script and configure the SQL Broker, and get sample scripting for processing the data in a Google Spreadsheet.
Java 1.9 does not like reflection as much as previous versions, and access to proprietary packages is not possible out of the box. Here's one way to adapt.