MCPcopy Create free account
hub / github.com/apache/arrow / tobytes

Function tobytes

dev/archery/archery/integration/util.py:119–122  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

117
118
119def tobytes(o):
120 if isinstance(o, str):
121 return o.encode('utf8')
122 return o
123
124
125def frombytes(o):

Callers 9

test_invalid_planFunction · 0.85
test_named_tableFunction · 0.85
test_output_field_namesFunction · 0.85
authenticateMethod · 0.85
generate_columnMethod · 0.85

Calls 1

encodeMethod · 0.45

Tested by 8

test_invalid_planFunction · 0.68
test_named_tableFunction · 0.68
test_output_field_namesFunction · 0.68
authenticateMethod · 0.68