From 74fc21416f56ff8f64df708544d6a6a9bf338302 Mon Sep 17 00:00:00 2001 From: Shylock Hg <33566796+Shylock-Hg@users.noreply.github.com> Date: Thu, 23 Dec 2021 14:12:56 +0800 Subject: [PATCH] Fix lack of duration in thrift Value definition. --- src/interface/common.thrift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/interface/common.thrift b/src/interface/common.thrift index 02349e48502..71ccf86a4cf 100644 --- a/src/interface/common.thrift +++ b/src/interface/common.thrift @@ -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") @@ -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;