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

After inserting a vertex without a tag, useshow statsto count the numbers of vertices or edges that cannot be counted #3649

Closed
foesa-yang opened this issue Jan 6, 2022 · 4 comments
Assignees
Labels
type/bug Type: something is unexpected
Milestone

Comments

@foesa-yang
Copy link

Please check the FAQ documentation before raising an issue

Describe the bug (required)

(root@nebula) [basketballplayer]> Insert vertex VALUES "1":(),"2":()
Execution succeeded (time spent 1111/1503 us)

Thu, 06 Jan 2022 03:46:54 UTC

(root@nebula) [basketballplayer]>  show stats
+---------+------------+-------+
| Type    | Name       | Count |
+---------+------------+-------+
| "Tag"   | "person"   | 0     |
| "Tag"   | "player"   | 51    |
| "Tag"   | "t2"       | 1     |
| "Tag"   | "team"     | 30    |
| "Edge"  | "follow"   | 81    |
| "Edge"  | "like"     | 0     |
| "Edge"  | "serve"    | 152   |
| "Space" | "vertices" | 82    |
| "Space" | "edges"    | 233   |
+---------+------------+-------+
Got 9 rows (time spent 797/1346 us)

Thu, 06 Jan 2022 03:46:58 UTC

Your Environments (required)

  • OS: uname -a
  • Compiler: g++ --version or clang++ --version
  • CPU: lscpu
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Insert vertex without Tag.
  2. show stats to count the numbers of vertices or edges.

Expected behavior

Additional context

@foesa-yang foesa-yang added the type/bug Type: something is unexpected label Jan 6, 2022
@Sophie-Xie Sophie-Xie added this to the v3.0.0 milestone Jan 6, 2022
@critical27
Copy link
Contributor

critical27 commented Jan 11, 2022

What's wrong with the result?
51 + 1 + 30 = 82 (count by tag)
81 + 152 = 233 (count by edge)

The actual vertex is not included in show stats

@foesa-yang
Copy link
Author

I insert a vertex without a tag, why can't I find it with show stats?

@panda-sheep
Copy link
Contributor

This has something to do with recent changes

When supporting the insertion of vertex without tag, the stats job needs to be compatible

@critical27
Copy link
Contributor

show stats only scan tag/edge ("Space" | "vertices" is tag sum), we could handle the actual vertex in stats job later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

5 participants