Check that pa_type is valid before checking if is_binary (#1354)

This commit is contained in:
Guillaume Lagrange 2024-02-23 10:44:03 -05:00 committed by GitHub
parent 08302e38fc
commit f5bd2a474f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ def blob_columns(dataset):
"""
type_mapping = {}
for name, value in dataset.features.items():
if pa.types.is_binary(value.pa_type):
if value.pa_type is not None and pa.types.is_binary(value.pa_type):
type_mapping[name] = LargeBinary
return type_mapping