nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Inconsistent behavior of semantically equivalent patterns

Open foesa-yang opened this issue 2 years ago • 4 comments

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 avatar Sep 20 '22 02:09 foesa-yang

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

Shylock-Hg avatar Sep 20 '22 05:09 Shylock-Hg

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

foesa-yang avatar Sep 20 '22 07:09 foesa-yang

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.

Shylock-Hg avatar Sep 20 '22 07:09 Shylock-Hg

That's ... strange.

whitewum avatar Sep 20 '22 07:09 whitewum