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

Function test_table

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

Source from the content-addressed store, hash-verified

1125
1126
1127def test_table(gdb_arrow):
1128 expected_table = (
1129 'arrow::Table with 2 columns, 5 rows = {'
1130 '["ints"] = arrow::ChunkedArray of type arrow::int32(), '
1131 'length 5, null count 0 with 2 chunks = '
1132 '{[0] = length 3, offset 0, null count 0, '
1133 '[1] = length 2, offset 0, null count 0}, '
1134 '["strs"] = arrow::ChunkedArray of type arrow::utf8(), '
1135 'length 5, null count 1 with 3 chunks = '
1136 '{[0] = length 2, offset 0, null count 1, '
1137 '[1] = length 1, offset 0, null count 0, '
1138 '[2] = length 2, offset 0, null count 0}}')
1139
1140 # Same as RecordBatch above (Table vs. SimpleTable)
1141 check_heap_repr(gdb_arrow, "table", expected_table)
1142 check_heap_repr(gdb_arrow, "table.get()", expected_table)
1143
1144
1145def test_datum(gdb_arrow):

Callers

nothing calls this directly

Calls 1

check_heap_reprFunction · 0.85

Tested by

no test coverage detected