Skip to content

Commit 63c933a

Browse files
authored
Add pyarrow's binary view to features (#7795)
This commit will be squashed.
1 parent 88d53e2 commit 63c933a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/datasets/features/features.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def _arrow_to_datasets_dtype(arrow_type: pa.DataType) -> str:
106106
return "binary"
107107
elif pyarrow.types.is_large_binary(arrow_type):
108108
return "large_binary"
109+
elif pyarrow.types.is_binary_view(arrow_type):
110+
return "binary_view"
109111
elif pyarrow.types.is_string(arrow_type):
110112
return "string"
111113
elif pyarrow.types.is_large_string(arrow_type):
@@ -508,6 +510,7 @@ class Value:
508510
- `decimal256(precision, scale)`
509511
- `binary`
510512
- `large_binary`
513+
- `binary_view`
511514
- `string`
512515
- `large_string`
513516
- `string_view`

0 commit comments

Comments
 (0)