9

Nebula Graph v2.0.0-alpha Release Note

 3 years ago
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



v2-ce9aa040fad273a6a788c5b6b2c41db5_720w.jpg

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() or datetime() 返回当前 Date 和 DateTime
    • id() 返回点的 ID
    • tags()labels() 返回点的 Tags
    • collect(), 聚合函数,将所有值收集到一个集合 List 中
    • collect_set(), 聚合函数,将所有值收集到一个集合 Set 中
    • properties() 返回节点或边的属性(Map)
    • type() 返回边的类型
    • src() 返回边的起点 ID
    • dst() 返回边的终点 ID
    • rank() 返回边的 rank 值
  • 新增运算符
    • IN 常用于条件表达式中,其作用是查询某个范围内的数据
    • 字符串匹配: STARTS WITHENDS WITHCONTAINS
  • Explain & Profile 进行执行计划分析
  • 子图, GET SUBGRAPH语句获取点的子图
  • 部分支持 Match
  • | 的输出可作为 DELETE 的输入

Features different from 1.0

  • CREATE SPACE 支持配置点 ID 的类型,目前支持 fixed_stringint64 将会在下个版本支持)
  • 简化了 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




About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK