-
Notifications
You must be signed in to change notification settings - Fork 665
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
[BUG] Support loading cached sublists with multiple data types #4572
Merged
hamersaw
merged 5 commits into
master
from
bug/loading-cached-sublists-with-multiple-types
Feb 14, 2024
Merged
[BUG] Support loading cached sublists with multiple data types #4572
hamersaw
merged 5 commits into
master
from
bug/loading-cached-sublists-with-multiple-types
Feb 14, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ublists with multiple types Signed-off-by: Paul Dittamo <[email protected]>
dosubot
bot
added
the
size:M
This PR changes 30-99 lines, ignoring generated files.
label
Dec 12, 2023
…types Signed-off-by: Paul Dittamo <[email protected]>
Signed-off-by: Paul Dittamo <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4572 +/- ##
==========================================
+ Coverage 58.91% 58.92% +0.01%
==========================================
Files 645 645
Lines 55351 55380 +29
==========================================
+ Hits 32609 32632 +23
- Misses 20159 20165 +6
Partials 2583 2583
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dosubot
bot
added
size:L
This PR changes 100-499 lines, ignoring generated files.
bug
Something isn't working
and removed
size:M
This PR changes 30-99 lines, ignoring generated files.
labels
Jan 26, 2024
hamersaw
previously approved these changes
Feb 13, 2024
…types Signed-off-by: Paul Dittamo <[email protected]>
Signed-off-by: Paul Dittamo <[email protected]>
hamersaw
approved these changes
Feb 14, 2024
katrogan
pushed a commit
that referenced
this pull request
Feb 20, 2024
* update catalog artifact data type mapping to support loading cached sublists with multiple types Signed-off-by: Paul Dittamo <[email protected]> * add unit tests Signed-off-by: Paul Dittamo <[email protected]> * use proto equals for unit tests Signed-off-by: Paul Dittamo <[email protected]> --------- Signed-off-by: Paul Dittamo <[email protected]> Signed-off-by: Katrina Rogan <[email protected]>
yubofredwang
pushed a commit
to yubofredwang/flyte
that referenced
this pull request
Mar 26, 2024
…org#4572) * update catalog artifact data type mapping to support loading cached sublists with multiple types Signed-off-by: Paul Dittamo <[email protected]> * add unit tests Signed-off-by: Paul Dittamo <[email protected]> * use proto equals for unit tests Signed-off-by: Paul Dittamo <[email protected]> --------- Signed-off-by: Paul Dittamo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tracking issue
#3901
Why are the changes needed?
Loading cached entries of nested lists with sublists of different types fails.
What changes were proposed in this pull request?
Update how LiteralTypes are generated for Literals. Do a ~post-order traversal to combine sibling collections under the same union type. Also, only include a NoneType when there aren't other Types under the same parent Type.
NOTE: deeper nesting will still fail ie:
This occurs as the types won't collapse as they don't share the same parent. This could be solved by building types at each level as opposed to in a DFS manner - however I figure we could run into weird edge cases with that.
How was this patch tested?
Setup process
Screenshots
Check all the applicable boxes
Related PRs
Docs link