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

parser error in lookup sentence #2785

Closed
cangfengzhs opened this issue Sep 2, 2021 · 3 comments
Closed

parser error in lookup sentence #2785

cangfengzhs opened this issue Sep 2, 2021 · 3 comments
Assignees
Labels
priority/low-pri Priority: low
Milestone

Comments

@cangfengzhs
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Please check the FAQ documentation and old issues before raising an issue in case someone has asked the same question that you are asking.

Describe the bug (must be provided)

(root@nebula) [t2]>  lookup on t where t.height<-1.0;
[ERROR (-1004)]: SyntaxError: syntax error near `<-'

(root@nebula) [t2]>  lookup on t where t.height< -1.0;
+----------+
| VertexID |
+----------+
+----------+

The second one has one space between < and -
A clear and concise description of what the bug is.

Your Environments (must be provided)

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

How To Reproduce(must be provided)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Provide logs and configs, or any other context to trace the problem.

@cangfengzhs cangfengzhs added type/bug Type: something is unexpected priority/low-pri Priority: low labels Sep 3, 2021
@Sophie-Xie Sophie-Xie added this to the v2.6.0 milestone Sep 6, 2021
@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Sep 6, 2021

It's not a bug but a syntax error. <- is the symbol of match pattern, so should add space between less than and negative number.

@cangfengzhs
Copy link
Contributor Author

It's not a bug but a syntax error. <- is the symbol of match pattern, so should add space between less than and negative number.

Maybe there is any way to resolve this grammatical ambiguity

@critical27 critical27 modified the milestones: v2.6.0, v3.0.0 Sep 17, 2021
@Sophie-Xie Sophie-Xie modified the milestones: v3.0.0, v3.1.0 Dec 15, 2021
@critical27 critical27 removed this from the v3.1.0 milestone Feb 18, 2022
@Sophie-Xie Sophie-Xie added the wontfix Solution: this will not be worked on recently label Apr 28, 2022
@Sophie-Xie Sophie-Xie removed the wontfix Solution: this will not be worked on recently label Apr 28, 2022
@Sophie-Xie Sophie-Xie reopened this Apr 28, 2022
@Sophie-Xie Sophie-Xie assigned CPWstatic and unassigned critical27 Apr 28, 2022
@Sophie-Xie Sophie-Xie added this to the v3.2.0 milestone Apr 28, 2022
@CPWstatic
Copy link
Contributor

As said by @Shylock-Hg , it is a syntax error indeed.

@CPWstatic CPWstatic removed the type/bug Type: something is unexpected label Apr 29, 2022
yixinglu pushed a commit to yixinglu/nebula that referenced this issue Sep 14, 2023
* Fix crash double free of expr.

* Change issue id.

Co-authored-by: shylock <33566796+Shylock-Hg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/low-pri Priority: low
Projects
None yet
Development

No branches or pull requests

5 participants