Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Ttl read filter #478

wants to merge 2 commits into from

Conversation

ayyt
Copy link
Contributor

@ayyt ayyt commented May 30, 2019

For vertex and edge with TTL, when reading data, if ttl_duration + ttl_col < now, the data is filtered out.

Close #163

@nebula-community-bot
Copy link
Member

Can one of the admins verify this patch?

@ayyt ayyt force-pushed the TTL_read branch 2 times, most recently from 12ce2b6 to baf77ab Compare June 3, 2019 10:52
@ayyt
Copy link
Contributor Author

ayyt commented Jun 3, 2019

Rebase master and please review code, thx.

return boost::get<std::string>(propValue_);
}

bool asBool() {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please refer to #403

@@ -76,11 +59,126 @@ class ColumnSpecificationList final {
};


class SchemaPropItem final {
public:
using Value = boost::variant<int64_t, bool, std::string>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bool seems unnecessary

};

SchemaPropItem(PropType op, int64_t val) {
propType_ = op;
Copy link
Contributor

@zlcook zlcook Jun 4, 2019

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?

propValue_ = val;
}

SchemaPropItem(PropType op, bool val) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems not be used

};
ASSERT_TRUE(verifyResult(resp, expected));
}
{ cpp2::ExecutionResponse resp;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code style

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@ayyt ayyt force-pushed the TTL_read branch 2 times, most recently from 049b3f8 to 4481f13 Compare June 5, 2019 10:39
@ayyt ayyt mentioned this pull request Jun 27, 2019
@ayyt ayyt force-pushed the TTL_read branch 5 times, most recently from 29726d8 to 7ac9356 Compare July 5, 2019 09:14
@ayyt ayyt added the ready-for-testing PR: ready for the CI test label Jul 5, 2019
@ayyt
Copy link
Contributor Author

ayyt commented Jul 5, 2019

Jenkins go!

@ayyt
Copy link
Contributor Author

ayyt commented Jul 5, 2019

Please code review, thx.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing failed.

@jude-zhu jude-zhu closed this Jan 3, 2020
yixinglu added a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Time-to-live (TTL)
4 participants