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

Provide a way to do data preview #1804

Closed
whitewum opened this issue Feb 23, 2020 · 0 comments
Closed

Provide a way to do data preview #1804

whitewum opened this issue Feb 23, 2020 · 0 comments
Labels
type/feature req Type: feature request

Comments

@whitewum
Copy link
Contributor

whitewum commented Feb 23, 2020

Is your feature request related to a problem? Please describe.

When you have a Database with new data, the first SQL command will be

select * from tables limit 10;

to do a data preview. So as the Cypher command

Match (n)
Return n
Limit 10

But, there is no corresponding command in nGQL. And I've been asked about this question so many times.

Describe the solution you'd like

Match (n)
Return n
Limit 10

is OK to me. A new command clause is also accepted but not recommended.

Describe alternatives you've considered
the count(*) command

select count(*) from tables;

or

Match (n)
Return count(n)

is also frequently used. So I hope there is a counterpart in nGQL.

Additional context
I know the storage can provide a scan api, so I think select *, select count(*) can be implemented in Nebula.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

4 participants