-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Ttl read filter #478
Ttl read filter #478
Conversation
Can one of the admins verify this patch? |
12ce2b6
to
baf77ab
Compare
Rebase master and please review code, thx. |
src/parser/MaintainSentences.h
Outdated
return boost::get<std::string>(propValue_); | ||
} | ||
|
||
bool asBool() { |
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.
the method seems not be used
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.
please refer to #403
src/parser/MaintainSentences.h
Outdated
@@ -76,11 +59,126 @@ class ColumnSpecificationList final { | |||
}; | |||
|
|||
|
|||
class SchemaPropItem final { | |||
public: | |||
using Value = boost::variant<int64_t, bool, std::string>; |
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.
bool
seems unnecessary
src/parser/MaintainSentences.h
Outdated
}; | ||
|
||
SchemaPropItem(PropType op, int64_t val) { | ||
propType_ = op; |
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.
to make sure that op
must be TTL_DURATION
here, WDYT?
src/parser/MaintainSentences.h
Outdated
propValue_ = val; | ||
} | ||
|
||
SchemaPropItem(PropType op, bool val) { |
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.
seems not be used
src/graph/test/SchemaTest.cpp
Outdated
}; | ||
ASSERT_TRUE(verifyResult(resp, expected)); | ||
} | ||
{ cpp2::ExecutionResponse resp; |
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.
code style
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.
Good catch!
049b3f8
to
4481f13
Compare
29726d8
to
7ac9356
Compare
Jenkins go! |
Please code review, thx. |
Unit testing passed. |
query vertex query edge
Unit testing failed. |
* Fix the column index in lexer. * Add comments. * Fix cases. Co-authored-by: Yee <[email protected]> Co-authored-by: shylock <[email protected]> Co-authored-by: Yee <[email protected]>
For vertex and edge with TTL, when reading data, if ttl_duration + ttl_col < now, the data is filtered out.
Close #163