cuddly-jelly-27016
02/13/2025, 3:34 PMpyflyte fetch, storing as JSON
Pull request opened by pimdh
Tracking issue
Closes flyteorg/flyte#6242
Why are the changes needed?
So that pyflyte fetch can process msgpack literals. Outputs JSON file.
What changes were proposed in this pull request?
• In the handling of pyflyte fetch make a special case for a binary scalar with msgpack tag.
• Added msgpack binary handling to scalar_to_string. Return json.
How was this patch tested?
• Added test for scalar_to_string
• Didn't add tests for the download code, because a test is missing for the entire function. Manually ran successfully.
Check all the applicable boxes
• I updated the documentation accordingly.
• All new and existing tests passed.
• All commits are signed-off.
Summary by Bito
The PR implements msgpack-encoded binary data support in Flyte's data fetching functionality, specifically in the 'pyflyte fetch' command. It updates AWS SageMaker and OpenAI plugin test files to transition from msgpack to JSON format, including changes to result parsing logic and JSON module imports. The implementation handles binary scalars with msgpack tags while maintaining JSON output format.
Unit tests added: True
Estimated effort to review (1-5, lower is better): 1
flyteorg/flytekitcuddly-jelly-27016
02/14/2025, 4:47 AMpyflyte fetch, storing as JSON
Pull request merged by Future-Outlier
flyteorg/flytekit