Skip to content

Commit 79a80c2

Browse files
committed
a few more
1 parent b84d6e4 commit 79a80c2

File tree

4 files changed

+17
-17
lines changed

4 files changed

+17
-17
lines changed

mkdocs/docs/api.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ This produces the following result with `tbl.scan().to_arrow()`:
418418

419419
```python
420420
pyarrow.Table
421-
city: large_string
421+
city: string
422422
lat: double
423423
long: double
424424
----
@@ -476,7 +476,7 @@ This produces the following result with `tbl.scan().to_arrow()`:
476476

477477
```python
478478
pyarrow.Table
479-
city: large_string
479+
city: string
480480
lat: double
481481
long: double
482482
----
@@ -957,14 +957,14 @@ split_offsets: list<item: int64>
957957
equality_ids: list<item: int32>
958958
child 0, item: int32
959959
sort_order_id: int32
960-
readable_metrics: struct<city: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: large_string, upper_bound: large_string> not null, lat: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: double, upper_bound: double> not null, long: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: double, upper_bound: double> not null>
960+
readable_metrics: struct<city: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: string, upper_bound: string> not null, lat: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: double, upper_bound: double> not null, long: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: double, upper_bound: double> not null>
961961
child 0, city: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: string, upper_bound: string> not null
962962
child 0, column_size: int64
963963
child 1, value_count: int64
964964
child 2, null_value_count: int64
965965
child 3, nan_value_count: int64
966-
child 4, lower_bound: large_string
967-
child 5, upper_bound: large_string
966+
child 4, lower_bound: string
967+
child 5, upper_bound: string
968968
child 1, lat: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: double, upper_bound: double> not null
969969
child 0, column_size: int64
970970
child 1, value_count: int64
@@ -998,7 +998,7 @@ equality_ids:[[[],[]]]
998998
sort_order_id:[[[],[]]]
999999
readable_metrics: [
10001000
-- is_valid: all not null
1001-
-- child 0 type: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: large_string, upper_bound: large_string>
1001+
-- child 0 type: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: string, upper_bound: string>
10021002
-- is_valid: all not null
10031003
-- child 0 type: int64
10041004
[140]
@@ -1008,9 +1008,9 @@ readable_metrics: [
10081008
[0]
10091009
-- child 3 type: int64
10101010
[null]
1011-
-- child 4 type: large_string
1011+
-- child 4 type: string
10121012
["Amsterdam"]
1013-
-- child 5 type: large_string
1013+
-- child 5 type: string
10141014
["San Francisco"]
10151015
-- child 1 type: struct<column_size: int64, value_count: int64, null_value_count: int64, nan_value_count: int64, lower_bound: double, upper_bound: double>
10161016
-- is_valid: all not null

tests/catalog/test_sql.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def test_write_pyarrow_schema(catalog: SqlCatalog, table_identifier: Identifier)
404404
],
405405
schema=pa.schema(
406406
[
407-
pa.field("foo", pa.large_string(), nullable=True),
407+
pa.field("foo", pa.string(), nullable=True),
408408
pa.field("bar", pa.int32(), nullable=False),
409409
pa.field("baz", pa.bool_(), nullable=True),
410410
pa.field("large", pa.large_string(), nullable=True),
@@ -1462,7 +1462,7 @@ def test_write_and_evolve(catalog: SqlCatalog, format_version: int) -> None:
14621462
{
14631463
"foo": ["a", None, "z"],
14641464
},
1465-
schema=pa.schema([pa.field("foo", pa.large_string(), nullable=True)]),
1465+
schema=pa.schema([pa.field("foo", pa.string(), nullable=True)]),
14661466
)
14671467

14681468
tbl = catalog.create_table(identifier=identifier, schema=pa_table.schema, properties={"format-version": str(format_version)})
@@ -1474,7 +1474,7 @@ def test_write_and_evolve(catalog: SqlCatalog, format_version: int) -> None:
14741474
},
14751475
schema=pa.schema(
14761476
[
1477-
pa.field("foo", pa.large_string(), nullable=True),
1477+
pa.field("foo", pa.string(), nullable=True),
14781478
pa.field("bar", pa.int32(), nullable=True),
14791479
]
14801480
),
@@ -1514,7 +1514,7 @@ def test_create_table_transaction(catalog: SqlCatalog, format_version: int) -> N
15141514
{
15151515
"foo": ["a", None, "z"],
15161516
},
1517-
schema=pa.schema([pa.field("foo", pa.large_string(), nullable=True)]),
1517+
schema=pa.schema([pa.field("foo", pa.string(), nullable=True)]),
15181518
)
15191519

15201520
pa_table_with_column = pa.Table.from_pydict(
@@ -1524,7 +1524,7 @@ def test_create_table_transaction(catalog: SqlCatalog, format_version: int) -> N
15241524
},
15251525
schema=pa.schema(
15261526
[
1527-
pa.field("foo", pa.large_string(), nullable=True),
1527+
pa.field("foo", pa.string(), nullable=True),
15281528
pa.field("bar", pa.int32(), nullable=True),
15291529
]
15301530
),

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2510,8 +2510,8 @@ def pa_schema() -> "pa.Schema":
25102510
return pa.schema(
25112511
[
25122512
("bool", pa.bool_()),
2513-
("string", pa.large_string()),
2514-
("string_long", pa.large_string()),
2513+
("string", pa.string()),
2514+
("string_long", pa.string()),
25152515
("int", pa.int32()),
25162516
("long", pa.int64()),
25172517
("float", pa.float32()),
@@ -2525,7 +2525,7 @@ def pa_schema() -> "pa.Schema":
25252525
# ("time", pa.time64("us")),
25262526
# Not natively supported by Arrow
25272527
# ("uuid", pa.fixed(16)),
2528-
("binary", pa.large_binary()),
2528+
("binary", pa.binary()),
25292529
("fixed", pa.binary(16)),
25302530
]
25312531
)

tests/integration/test_writes/test_partitioned_writes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def test_unsupported_transform(
891891

892892
with pytest.raises(
893893
ValueError,
894-
match="FeatureUnsupported => Unsupported data type for truncate transform: LargeBinary",
894+
match="FeatureUnsupported => Unsupported data type for truncate transform: Binary",
895895
):
896896
tbl.append(arrow_table_with_null)
897897

0 commit comments

Comments
 (0)