-
Notifications
You must be signed in to change notification settings - Fork 670
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
Update artifact IDL with new time partition #4737
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4737 +/- ##
==========================================
+ Coverage 58.20% 58.32% +0.12%
==========================================
Files 626 626
Lines 53950 53938 -12
==========================================
+ Hits 31402 31460 +58
+ Misses 20038 19954 -84
- Partials 2510 2524 +14
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -19,8 +20,13 @@ message ArtifactBindingData { | |||
uint32 index = 1; | |||
|
|||
// These two fields are only relevant in the partition value case | |||
string partition_key = 2; | |||
string transform = 3; | |||
oneof partition_data { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
above this, ArtifactBindingData
is listed as being only valid for triggers, why is that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's just only used for trigger handling. this message means that the system needs some input, but that input is one of the triggering artifacts that was recently created (as opposed to an input variable).
Signed-off-by: Yee Hing Tong <[email protected]>
Signed-off-by: Yee Hing Tong <[email protected]> update idl Signed-off-by: Yee Hing Tong <[email protected]> make execution manager changes Signed-off-by: Yee Hing Tong <[email protected]> rename field Signed-off-by: Yee Hing Tong <[email protected]>
5f2038c
to
f0e5c08
Compare
Signed-off-by: Yee Hing Tong <[email protected]>
* test changes to time partition (#4737) Signed-off-by: Yee Hing Tong <[email protected]> * trigger from core -> artifact, artifact->artifacts * artifacts.proto package to cloud * data proxy package to cloud * deactivateAllTriggers endpoint * proto package paths, gen protos --------- Signed-off-by: Yee Hing Tong <[email protected]> Co-authored-by: Yee Hing Tong <[email protected]>
The current partition information coerces the time value into a string and uses the special
ds
key to indicate that it's a time. This is awkward so let's pull it out into a separate field that's correctly typed.Changes
Admin
IDL
ArtifactBindingData
to be able to bind to the time partition, and also move the old and new field together into aoneof
.TimePartition
message which has a timestamp field.time_value
to theLabelValue
value oneof. This value should only be used for the new time partition message.partitions
field in theArtifactID
not a oneof. Even if we one day need existence checking, the fact that it's a separate message already gives us that (theHasField
call in python and the nil check in go).