airflow/contrib/hooks/pinot_hook.py
def get_first(self, sql):
        """
        Executes the sql and returns the first resulting row.

        :param sql: the sql statement to be executed (str) or a list of
            sql statements to execute
        :type sql: str or list
        """
        with self.get_conn() as cur:
            cur.execute(sql)
            return cur.fetchone()
def get_first(self, sql):
        """
        Executes the sql and returns the first resulting row.

        :param sql: the sql statement to be executed (str) or a list of
            sql statements to execute
        :type sql: str or list
        """
        with self.get_conn() as cur:
            cur.execute(sql)
            return cur.fetchone()
def get_first ( self , sql ) : with self . get_conn ( ) as cur : cur . execute ( sql ) return cur . fetchone ( )
Executes the sql and returns the first resulting row.

        :param sql: the sql statement to be executed (str) or a list of
            sql statements to execute
        :type sql: str or list
Executes the sql and returns the first resulting row .