You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

1 对数据模型的重新思考


在当前的数据模型中,存在一元和多元(对齐)两种时间序列。其中多元时间序列包含多个分量,这些分量必须同时创建、同时插入值,删除时也必须同时删除,但可以对分量进行单独查询。

由于一元序列和多元序列的分量具有相似性,在查询、写入的时候容易引发歧义。


例1:在 vector 场景下考虑查询语句的语义。

元数据包含:

  • 两条一元时间序列:root.sg1.d1.s1、root.sg1.d1.d2.s1
  • 多元时间序列:root.sg1.d1.vector1,包含s1、s2两个分量

考虑以下 SQL 的语义:

select * from root.d1
select ** from root.d1
select s1 from root.d1.*
select s1 from root.d1.**


例2:在 vector 场景下考虑插入语句的设计。


2 Vector SQL 设计

  • No labels