MCPcopy Create free account
hub / github.com/brimdata/super / decode_jsup

Function decode_jsup

python/superdb/superdb.py:91–98  ·  view source on GitHub ↗
(jsup)

Source from the content-addressed store, hash-verified

89
90
91def decode_jsup(jsup):
92 types = {}
93 for msg in jsup:
94 typ, value = msg['type'], msg['value']
95 if isinstance(typ, dict):
96 yield _decode_value(_decode_type(types, typ), value)
97 elif typ == 'QueryError':
98 raise QueryError(value['error'])
99
100
101def _decode_type(types, typ):

Callers 1

queryMethod · 0.85

Calls 3

_decode_valueFunction · 0.85
_decode_typeFunction · 0.85
QueryErrorClass · 0.70

Tested by

no test coverage detected