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

Type check failed in match where clause #2688

Closed
czpmango opened this issue Feb 1, 2021 · 4 comments
Closed

Type check failed in match where clause #2688

czpmango opened this issue Feb 1, 2021 · 4 comments
Assignees
Labels
priority/med-pri Priority: medium type/bug Type: something is unexpected
Milestone

Comments

@czpmango
Copy link
Contributor

czpmango commented Feb 1, 2021

(czp@nebula) [nba]>       MATCH p = (n:player)<-[e:like]-(m)       WHERE n.age >= 33.0000000000011         RETURN n.name AS player, n.age AS age
[ERROR (-12)]: SemanticError: Data type error of field : age

Mon, 01 Feb 2021 11:06:47 CST

(czp@nebula) [nba]>       MATCH p = (n:player)<-[e:like]-(m)       WHERE n.age >= 33         RETURN n.name AS player, n.age AS age
+---------------------+-----+
| player              | age |
+---------------------+-----+
| "Shaquile O'Neal"   | 47  |
+---------------------+-----+
| "Kobe Bryant"       | 40  |
+---------------------+-----+
| "Kobe Bryant"       | 40  |
+---------------------+-----+

@jievince
Copy link
Contributor

jievince commented Feb 3, 2021

The filter condition of IndexScan is too strict.

@Aiee
Copy link
Contributor

Aiee commented Mar 9, 2021

vesoft-inc/nebula-graph#784 only fixed LOOKUP. This issue in MATCH retains.

@Aiee Aiee reopened this Mar 9, 2021
@HarrisChu
Copy link
Contributor

MATCH bug still in v2.0.1

@CPWstatic CPWstatic transferred this issue from vesoft-inc/nebula-graph Aug 28, 2021
@CPWstatic CPWstatic added type/bug Type: something is unexpected priority/med-pri Priority: medium labels Aug 28, 2021
@CPWstatic CPWstatic added this to the v2.6.0 milestone Aug 30, 2021
@Sophie-Xie Sophie-Xie modified the milestones: v2.6.0, v2.7.0, v3.0.0 Oct 12, 2021
@czpmango
Copy link
Contributor Author

I test this query with the latest version and no errors were reported:

(czp@nebula) [nba]>    MATCH p = (n:player)<-[e:like]-(m)       WHERE n.age >= 33.0000000000011         RETURN n.name AS player, n.age AS age limit 3
+---------------------+-----+
| player              | age |
+---------------------+-----+
| "LaMarcus Aldridge" | 33  |
| "LaMarcus Aldridge" | 33  |
| "Chris Paul"        | 33  |
+---------------------+-----+

But, the result is still incorrect. Close it and reopen another issue(#3577).

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

Successfully merging a pull request may close this issue.

6 participants