'Get a set of records from Presto'

def get_records(self, hql, parameters=None):

    try:
        return super(PrestoHook, self).get_records(self._strip_sql(hql), parameters)
    except DatabaseError as e:
        raise PrestoException(self._parse_exception_message(e))
