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

切换 spcae异常。 #17

Closed
linfahe opened this issue Nov 12, 2022 · 5 comments
Closed

切换 spcae异常。 #17

linfahe opened this issue Nov 12, 2022 · 5 comments

Comments

@linfahe
Copy link

linfahe commented Nov 12, 2022

执行test方法:[main] ERROR io.github.anyzm.graph.ocean.session.NebulaSessionWrapper - 更新nebula异常 code:-1004, msg:SyntaxError: syntax error near `execute', nGql:execute first_space ; UPSERT VERTEX "UR123" SET user.user_name=张三,user.user_no=UR123;
本人环境 3.0,使用 jdk 17运行。
发现问题:
1、execute first_space ; 应该是 use ;
2、UPSERT VERTEX "UR123" SET user.user_name=张三,user.user_no=UR123; 语法错误,
官网语法规则:
UPSERT VERTEX ON
SET <update_prop>
[WHEN ]
[YIELD ]

亲测: UPSERT VERTEX on user "UR123" SET user.user_name="张三",user.user_no="UR123"; 可以运行。

后续 有考虑 集成到 springboot 中,开发一个 start,自动装配?

@Anyzm
Copy link
Collaborator

Anyzm commented Nov 15, 2022

springboot只需要自己写一个config类就好了,在生产实践的文档里面有写,starter开发的意义不大,目前没有计划。

1、execute first_space ; 应该是 use ;这个可以提供具体类和方法吗?
2、语法问题2.x的版本是支持的,可能3.x语法有调整,有时间再改一下,或者您这边方便的话也可以帮忙提一个PR

@linfahe
Copy link
Author

linfahe commented Nov 16, 2022

io.github.anyzm.graph.ocean.mapper.NebulaGraphMapper.SQL

@Anyzm
Copy link
Collaborator

Anyzm commented Nov 18, 2022

io.github.anyzm.graph.ocean.mapper.NebulaGraphMapper.SQL

好的,谢谢
在这个文档里面的初始化示例,拷贝过去改一改就适配springboot的项目
https://github.com/nebula-contrib/graph-ocean/blob/main/detailed_introduction.md

@linfahe
Copy link
Author

linfahe commented Nov 18, 2022

好的,谢谢

@Anyzm
Copy link
Collaborator

Anyzm commented Mar 9, 2023

目前已经发布3.0.1

@Anyzm Anyzm closed this as completed Mar 9, 2023
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

2 participants