9
Nebula Graph v2.0.0-alpha Release Note
source link: https://zhuanlan.zhihu.com/p/271968916
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Nebula Graph v2.0.0-alpha Release Note
Nebula Graph v2.0.0-alpha 发布啦~ 该版本丰富了数据类型,增强了 nGQL 表达能力,逐步兼容 openCypher。
Nebula
!!注意:Schema 和数据暂未兼容 1.0,正开发中…
New Features
- 点 ID 支持 String 类型
- 新增数据类型
NULL
,点和边的属性可以为 NULL,支持为属性增加 NOT NULL 约束- 复合类型:List,Set 和 Map(不支持定义属性类型)
- 时间类型:DATE 和 DATETIME
size()
返回列表中元素的数量time()
返回当前时间默认返回当前时区的当前日期date()
ordatetime()
返回当前 Date 和 DateTimeid()
返回点的 IDtags()
和labels()
返回点的 Tagscollect()
, 聚合函数,将所有值收集到一个集合 List 中collect_set()
, 聚合函数,将所有值收集到一个集合 Set 中properties()
返回节点或边的属性(Map)type()
返回边的类型src()
返回边的起点 IDdst()
返回边的终点 IDrank()
返回边的 rank 值
- 新增运算符
IN
常用于条件表达式中,其作用是查询某个范围内的数据- 字符串匹配:
STARTS WITH
,ENDS WITH
,CONTAINS
- Explain & Profile 进行执行计划分析
- 子图,
GET SUBGRAPH
语句获取点的子图 - 部分支持
Match
|
的输出可作为DELETE
的输入
Features different from 1.0
CREATE SPACE
支持配置点 ID 的类型,目前支持fixed_string
(int64
将会在下个版本支持)- 简化了
UPDATE/UPSERT
语句 UPSERT ... SET
未 set 的属性将会被设置成改属性的默认值,若没有默认值,将会被设置为NULL
。若改属性上设置了NOT NULL
限制,会报错$-
在管道操作中,不再等价于$-.id
- 默认值中的表达式不再在 Schema 定义的时候计算,而会在数据插入时计算
Upcoming Soon(进行中)
DESCRIBE TAG/EDGE INDEX
REBUILD TAG/EDGE INDEX
SHOW TAG/EDGE INDEXES
SHOW TAG/EDGE INDEX STATUS
FETCH PROP ON
多个 tags- 点 ID 兼容 1.0 中 Integer 类型
- 支持更多 openCypher 语句
- 备份和恢复
Console
- 支持 local command 模式,比如,
:set csv
命令可将查询结果导出到 CSV。详情请参见 nebula-console
- Python
客户端支持连接池和负载均衡,详情请见 nebula-clients。
Studio
- 暂不适用于 Nebula Graph 2.0
最后是 Nebula 的 GitHub 地址,欢迎大家试用,有什么问题可以向我们提 issue。GitHub 地址:https://github.com/vesoft-inc/nebula;加入 Nebula Graph 交流群,请联系 Nebula Graph 官方小助手微信号:NebulaGraphbot
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK