'Serves a key off of the results backend'

@has_access_api
@expose(u'/results/<key>/')
@log_this
def results(self, key):

    if (not results_backend):
        return json_error_response(u"Results    backend    isn't    configured")
    blob = results_backend.get(key)
    if (not blob):
        return json_error_response(u'Data    could    not    be    retrieved.    You    may    want    to    re-run    the    query.', status=410)
    query = db.session.query(Query).filter_by(results_key=key).one()
    rejected_tables = self.rejected_datasources(query.sql, query.database, query.schema)
    if rejected_tables:
        return json_error_response(get_datasource_access_error_msg(u'{}'.format(rejected_tables)))
    payload = utils.zlib_decompress_to_string(blob)
    display_limit = app.config.get(u'DISPLAY_SQL_MAX_ROW', None)
    if display_limit:
        payload_json = json.loads(payload)
        payload_json[u'data'] = payload_json[u'data'][:display_limit]
    return json_success(json.dumps(payload_json, default=utils.json_iso_dttm_ser))
