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

go sentence support integer/timestamp type to start traverse. #2225

Merged
merged 3 commits into from
Jul 21, 2020

Conversation

xuguruogu
Copy link
Collaborator

@xuguruogu xuguruogu commented Jul 13, 2020

support go from integer or timestamp. Just like sentence below:

...| go from hash($-.id) over edge

@@ -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 &&
Copy link
Contributor

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.....

Copy link
Collaborator Author

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.

Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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

Copy link
Contributor

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.

Copy link
Contributor

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.

@dangleptr dangleptr added the ready-for-testing PR: ready for the CI test label Jul 16, 2020
@dangleptr
Copy link
Contributor

Please check the failed UTs

@jude-zhu jude-zhu requested a review from dangleptr July 21, 2020 07:02
@dangleptr dangleptr merged commit b4378b0 into vesoft-inc:master Jul 21, 2020
@Amber1990Zhang Amber1990Zhang added the doc affected PR: improvements or additions to documentation label Jul 31, 2020
@Amber1990Zhang
Copy link
Contributor

doc done

tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
…-inc#2225)

Co-authored-by: trippli <trippli@tencent.com>
Co-authored-by: dangleptr <37216992+dangleptr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc affected PR: improvements or additions to documentation ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants