airflow.contrib.hooks.pinot_hook
¶
Module Contents¶
-
class
airflow.contrib.hooks.pinot_hook.
PinotDbApiHook
(*args, **kwargs)[source]¶ Bases:
airflow.hooks.dbapi_hook.DbApiHook
Connect to pinot db(https://github.com/linkedin/pinot) to issue pql
-
get_records
(self, sql)[source]¶ Executes the sql and returns a set of records.
- Parameters
sql (str) – the sql statement to be executed (str) or a list of sql statements to execute
-