Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
119
def
tobytes(o):
120
if
isinstance(o, str):
121
return
o.encode(
'utf8'
)
122
return
o
123
124
125
def
frombytes(o):
Callers
9
test_run_serialized_query
Function · 0.85
test_invalid_plan
Function · 0.85
test_binary_conversion_with_json_options
Function · 0.85
test_named_table
Function · 0.85
test_named_table_invalid_table_name
Function · 0.85
test_named_table_empty_names
Function · 0.85
test_output_field_names
Function · 0.85
authenticate
Method · 0.85
generate_column
Method · 0.85
Calls
1
encode
Method · 0.45
Tested by
8
test_run_serialized_query
Function · 0.68
test_invalid_plan
Function · 0.68
test_binary_conversion_with_json_options
Function · 0.68
test_named_table
Function · 0.68
test_named_table_invalid_table_name
Function · 0.68
test_named_table_empty_names
Function · 0.68
test_output_field_names
Function · 0.68
authenticate
Method · 0.68