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

Function test_table

python/pyarrow/tests/test_gdb.py:1048–1063  ·  view source on GitHub ↗
(gdb_arrow)

Source from the content-addressed store, hash-verified

1046
1047
1048def test_table(gdb_arrow):
1049 expected_table = (
1050 'arrow::Table with 2 columns, 5 rows = {'
1051 '["ints"] = arrow::ChunkedArray of type arrow::int32(), '
1052 'length 5, null count 0 with 2 chunks = '
1053 '{[0] = length 3, offset 0, null count 0, '
1054 '[1] = length 2, offset 0, null count 0}, '
1055 '["strs"] = arrow::ChunkedArray of type arrow::utf8(), '
1056 'length 5, null count 1 with 3 chunks = '
1057 '{[0] = length 2, offset 0, null count 1, '
1058 '[1] = length 1, offset 0, null count 0, '
1059 '[2] = length 2, offset 0, null count 0}}')
1060
1061 # Same as RecordBatch above (Table vs. SimpleTable)
1062 check_heap_repr(gdb_arrow, "table", expected_table)
1063 check_heap_repr(gdb_arrow, "table.get()", expected_table)
1064
1065
1066def test_datum(gdb_arrow):

Callers

nothing calls this directly

Calls 1

check_heap_reprFunction · 0.85

Tested by

no test coverage detected