-
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
go sentence support integer/timestamp type to start traverse. #2225
Conversation
@@ -191,11 +191,13 @@ InterimResult::buildIndex(const std::string &vidColumn) const { | |||
auto name = schema->getFieldName(i); | |||
if (vidColumn == name) { | |||
VLOG(1) << "col name: " << vidColumn << ", col index: " << i; | |||
if (schema->getFieldType(i).type != SupportedType::VID) { | |||
if (schema->getFieldType(i).type != SupportedType::INT && |
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.
I want to know in which situation you need to traverse from "Timestamp" 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.
For example: find out active users in the last hour/minute.
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.
For example: find out active users in the last hour/minute.
Sorry, i did not understand it. The time point is one vertex in your case?
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.
yes, connect action with a timestamp(start of the minute/hour). We can find out the active actions, without index.
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 my knowledge, timestamp has no difference with an integer type. I use timestamp type to be displayed more human-readable
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.
Interesting.
The pr has no problems in logic. But we need to discuss it futher.
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.
We both think the improvement is reasonable. Let's go on.
Thanks for your contribution.
Please check the failed UTs |
9f3445f
to
53f3011
Compare
doc done |
…-inc#2225) Co-authored-by: trippli <trippli@tencent.com> Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
support go from integer or timestamp. Just like sentence below: