Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/io/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pyarrow as pa
import pyarrow.parquet as pq
from arro3.core import Array, DataType, Table
from arro3.io import read_parquet, write_parquet


Expand Down Expand Up @@ -42,3 +43,15 @@ def test_copy_parquet_kv_metadata():

reader = read_parquet("test.parquet")
assert reader.schema.metadata[b"hello"] == b"world"


def test_string_view():
arr = Array(["foo", "bar", "baz"], type=DataType.string_view())
table = Table.from_arrays([arr], names=["a"])

bio = BytesIO()
write_parquet(table, bio)
bio.seek(0)

table_retour = read_parquet(bio).read_all()
assert table == table_retour
Loading