-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Core feature] Add Outputs() as the idiom for multiple outputs, to avoid user confusion on NamedTuple-vs-dataclass #2720
Comments
Thank you for opening your first issue here! 🛠 |
Didn't get a chance to keep up with the Slack thread in real time. If I'm understanding this, the issues are:
The proposal is to create a new construct that will make it obvious to the user what is happening. Can I suggest the following?
|
@wild-endeavor Wait, I think you're missing a key high-level idea here:
So as a consequence of that:
wdyt? |
Important caveat: I have no idea if the inline usage of e.g. |
Hello 👋, This issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will close the issue if we detect no activity in the next 7 days. Thank you for your contribution and understanding! 🙏 |
Hello 👋, This issue has been inactive for over 9 months and hasn't received any updates since it was marked as stale. We'll be closing this issue for now, but if you believe this issue is still relevant, please feel free to reopen it. Thank you for your contribution and understanding! 🙏 |
@jdanbrown you don't care that We're looking at adding a top level outputs object to the IDL. I think it's the right time to revisit this. |
@wild-endeavor Yeah! Don't care if |
Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. |
Motivation: Why do you think this is important?
(Copying out a feature request from slack, hopefully I captured enough context here)
I now understand the (important) distinction between dataclasses and NamedTuple in flytekit:
What's confusing is the way a python user declares a datatype using
@dataclass
orNamedTuple
is basically the same:So it's a very easy trap to think they're basically interchangeable and then get confused and/or frustrated when flyte behaves in very different ways depending on which one you used. My team is trying to anticipate adding the rest of our team as flyte users (~8 people), as well as handfuls more teams (~5–10 teams) as users, and we think this is an important friction to get ahead of and have a simple recommendation and happy path for.
Goal: What should the final outcome look like, ideally?
Library pseudocode
Example user code:
Describe alternatives you've considered
.
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: