Skip to content

Commit

Permalink
[Python] Fix error in schema examples (pa.unify_schemas) for dev arro…
Browse files Browse the repository at this point in the history
…w version (#333)

This PR closes #331
  • Loading branch information
AlenkaF authored and raulcd committed Nov 14, 2023
1 parent c5cd79c commit 57ddfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/source/schema.rst
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ because in ``second_schema`` it was already declared as a ``pa.string()``

try:
union_schema = pa.unify_schemas([first_schema, second_schema, third_schema])
except pa.ArrowInvalid as e:
except (pa.ArrowInvalid, pa.ArrowTypeError) as e:
print(e)

.. testoutput::
Expand Down

0 comments on commit 57ddfd2

Please sign in to comment.