Skip to content

python(fix): Parquet file attachment support#486

Merged
wei-qlu merged 2 commits intomainfrom
python/parquet-file-attatchment-handling
Mar 3, 2026
Merged

python(fix): Parquet file attachment support#486
wei-qlu merged 2 commits intomainfrom
python/parquet-file-attatchment-handling

Conversation

@wei-qlu
Copy link
Contributor

@wei-qlu wei-qlu commented Feb 27, 2026

Parquet files (.parquet, .pqt) could not be uploaded via FileAttachmentsAPI.upload because Python's mimetypes module doesn't include application/vnd.apache.parquet by default, causing a "MIME-type could not be computed" error. This PR adds the parquet MIME type at module load time in UploadLowLevelClient and adds unit tests to cover both extensions.

image

@wei-qlu wei-qlu requested a review from solidiquis February 27, 2026 20:27
@solidiquis solidiquis requested a review from nathan-sift March 2, 2026 16:57
@wei-qlu wei-qlu force-pushed the python/parquet-file-attatchment-handling branch from 7e70a68 to 0eb4c25 Compare March 3, 2026 22:56
@wei-qlu wei-qlu requested a review from nathan-sift March 3, 2026 22:59
Copy link
Contributor

@nathan-sift nathan-sift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@wei-qlu wei-qlu merged commit 5f358cb into main Mar 3, 2026
15 checks passed
@wei-qlu wei-qlu deleted the python/parquet-file-attatchment-handling branch March 3, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants