Skip to content

Commit

Permalink
Fix lack of duration in thrift Value definition (#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shylock-Hg authored Dec 25, 2021
1 parent 6c81a5a commit 6e13518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/interface/common.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ union Value {
14: NSet (cpp.type = "nebula::Set") uVal (cpp.ref_type = "unique");
15: DataSet (cpp.type = "nebula::DataSet") gVal (cpp.ref_type = "unique");
16: Geography (cpp.type = "nebula::Geography") ggVal (cpp.ref_type = "unique");
17: Duration (cpp.type = "nebula::Duration") duVal (cpp.ref_type = "unique");
} (cpp.type = "nebula::Value")


Expand Down Expand Up @@ -226,6 +227,8 @@ struct KeyValue {
2: binary value,
} (cpp.type = "nebula::KeyValue")

// !! Struct Duration has a shadow data type defined in the Duration.h
// So any change here needs to be reflected to the shadow type there
struct Duration {
1: i64 seconds;
2: i32 microseconds;
Expand Down

0 comments on commit 6e13518

Please sign in to comment.