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

Inconsistent behavior of semantically equivalent patterns #4661

Open
foesa-yang opened this issue Sep 20, 2022 · 4 comments
Open

Inconsistent behavior of semantically equivalent patterns #4661

foesa-yang opened this issue Sep 20, 2022 · 4 comments
Assignees
Labels
need to discuss Solution: issue or PR without a clear conclusion on whether to handle it type/enhancement Type: make the code neat or more efficient

Comments

@foesa-yang
Copy link

Please check the FAQ documentation before raising an issue

Describe the bug (required)

If I execute the following statement, an error will appear.

$ MATCH (a)-[e]->() RETUN rank(e) LIMIT 10
$ MATCH (a)-[e]->() RETUN e LIMIT 10

The screenshot on the Studio is as follows:
image

And actually I can execute the following statement:

$ MATCH ()-[e]->() RETURN e LIMIT 10

The screenshot on the Studio is as follows:
image

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. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

@foesa-yang foesa-yang added the type/bug Type: something is unexpected label Sep 20, 2022
@Sophie-Xie Sophie-Xie added this to the v3.3.0 milestone Sep 20, 2022
@Shylock-Hg
Copy link
Contributor

match ()-[e]->() return e limit 10

@foesa-yang
Copy link
Author

I just want to write v here, so can't the execution be successful?

@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Sep 20, 2022

I just want to write v here, so can't the execution be successful?

Yes, it's expected according to our design, maybe we could optimize it later.

@whitewum
Copy link
Contributor

whitewum commented Sep 20, 2022

That's ... strange.

@czpmango czpmango changed the title Here is some problem in MATCH Inconsistent behavior of semantically equivalent patterns Sep 20, 2022
@Shylock-Hg Shylock-Hg removed this from the v3.3.0 milestone Sep 21, 2022
@Shylock-Hg Shylock-Hg added type/enhancement Type: make the code neat or more efficient need to discuss Solution: issue or PR without a clear conclusion on whether to handle it and removed type/bug Type: something is unexpected labels Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need to discuss Solution: issue or PR without a clear conclusion on whether to handle it type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

4 participants