Comments (6)
To support native JSON types in Flyte, you propose introducing a new LiteralType.JSON
in FlyteIDL, using binary/bytearray for transport, and allowing custom JSON serializers/deserializers. This approach aims to address issues with current JSON handling via protobuf Struct, particularly with integer representation.
Would you like more detail on how to implement this feature or any potential challenges?
Sources:
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not.
Mention @RunLLM to ask follow-up questions. See runllm.com for more!
from flyte.
Related to #4505
from flyte.
#take
from flyte.
From #4505 (comment), I see the follow Python types that can use Literal.JSON
:
dicts
->JsonPickle
dataclasses
-> UseMashumuro's
encoders/decorders or the object'sto_json
+from_json
(These methods are defined withDataClassJSONMixin
)
@kumare3 Are you considering other Python types that would use Literal.JSON
?
from flyte.
I am saying wholesale migration to json for these unsupported types from struct
from flyte.
from flyte.
Related Issues (20)
- [BUG] Boolean values within pydantic base model being casted to scalar value HOT 1
- [Housekeeping] Files used in `data_types_and_io.normalize_csv_file` and `data_types_and_io.download_and_normalize_csv_files` are no longer accessible HOT 6
- [Core feature] Default task resource behavior should apply for node level overrides HOT 3
- [Core feature] Update/register multiple launch plans with different inputs HOT 3
- [BUG] (Kubeflow) PyTorchPlugin sets Replicas to 0 casuing infinite loop HOT 7
- [BUG] regression: envFrom provided from pod template is discarded HOT 1
- [BUG] Relaunch workflow converts large numbers in array of structs to objects. HOT 5
- [BUG] `uri` of the input with `Any` type of the workflow is incorrect when run remotely HOT 3
- [BUG] Accessing attributes fails on complex types HOT 3
- [BUG] Plugin Collector does not include group HOT 4
- [BUG] Flyte v1.11.0 will fail to load the task's input & output ran by Flyte v1.3.2 HOT 1
- [BUG] Task errors are not directly surfaced in unit tests in 1.12.0 HOT 3
- [Docs] Help messages, error messages, and documentation for `pyflyte package` unfortunately result in a very bad first-time UX HOT 1
- [Core Feature] Local logs for local container task executions. HOT 1
- [BUG] Task should not attempt to retry if fails to deserialize the input HOT 2
- [BUG] Local `FlyteFile` whose name contains spaces fail in remote execution with "File Not Found" error
- [Housekeeping] Add support for protobuf version 5 in flytekit HOT 1
- [BUG] When triggering a remote LP, Flytekit fails with TypeError: 'NoneType' object is not subscriptable HOT 1
- [BUG] python task retries=n causes "Requests overridden" error log message for interruptible task HOT 1
- [BUG] Handler for .well-known/openid-configuration constructs redirect path incorrectly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flyte.