Skip to content

Commit

Permalink
fix: carry on in the face of more arrow-exceptions
Browse files Browse the repository at this point in the history
There are more Parquet-related exceptions that prevent the file format
conversion from progressing.

Instead of continuing to add to the list of exception types, have found the
PyArrow exception base class at
https://github.com/apache/arrow/blob/fb8e8122f623f4548b22ece7485c4570d7ece1a6/python/pyarrow/error.pxi#L33C7-L33C21

(This is vey similary to previous fixes)
  • Loading branch information
michalc committed Dec 9, 2024
1 parent e1ce6eb commit fe1fd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def sqlite_to_ods(use_zip_64):
try:
aws_multipart_upload(signed_s3_request, s3_key,
stream_write_parquet(cols, rows))
except (pa.ArrowNotImplementedError, pa.ArrowTypeError):
except pa.ArrowException:
logger.exception('Unable to convert to parquet')

# And save as a single ODS file
Expand Down

0 comments on commit fe1fd0f

Please sign in to comment.