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

Get the month of attribute and return BAD_TYPE #2618

Closed
foesa-yang opened this issue Aug 19, 2021 · 2 comments
Closed

Get the month of attribute and return BAD_TYPE #2618

foesa-yang opened this issue Aug 19, 2021 · 2 comments
Assignees
Milestone

Comments

@foesa-yang
Copy link

Nebula Graph version: v2.5.0

(root@nebula) [basketballplayer]> INSERT VERTEX date1(p1, p2, p3) VALUES "test1":(date("2021-03-17"), time("17:53:59"), datetime("2021-03-17T17:53:59"));
Execution succeeded (time spent 1668/2025 us)

(root@nebula) [basketballplayer]> CREATE TAG INDEX date1_index ON date1(p1);
Execution succeeded (time spent 1036/1457 us)

Thu, 19 Aug 2021 07:44:53 UTC

(root@nebula) [basketballplayer]> REBUILD TAG INDEX date1_index;
+------------+
| New Job Id |
+------------+
| 29         |
+------------+

(root@nebula) [basketballplayer]> MATCH (v:date1) RETURN v.p1.month;
+------------+
| v.p1.month |
+------------+
| BAD_TYPE   |
+------------+

In the 2.0.1 kernel, the return value is as follows:

nebula> MATCH (v:date1) RETURN v.p1.month;
+------------+
| v.p1.month |
+------------+
| 3          |
+------------+

Please add this examples to TCK case. @forest-yuxl @Sophie-Xie

@CPWstatic CPWstatic transferred this issue from vesoft-inc/nebula-graph Aug 27, 2021
@CPWstatic CPWstatic added the type/bug Type: something is unexpected label Aug 28, 2021
@CPWstatic CPWstatic added this to the v2.6.0 milestone Aug 30, 2021
@Shylock-Hg
Copy link
Contributor

Shylock-Hg commented Aug 31, 2021

It's introduced in vesoft-inc/nebula-graph@fa612c7, which don't release in v2.5.0 , it's not bug.

@Shylock-Hg Shylock-Hg removed the type/bug Type: something is unexpected label Aug 31, 2021
@Shylock-Hg
Copy link
Contributor

And I can't reproduce in v2.0.1 , please check it @foesa-yang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants