【问题标题】:Why is it necessary to use keyword ‘aligned’ in SQL when inserting a aligned timeseries in Apache IoTDB为什么在 Apache IoTDB 中插入对齐的时间序列时必须在 SQL 中使用关键字“对齐”
【发布时间】:2021-12-30 22:55:49
【问题描述】:

我对 IoTDB 0.13 版中关于对齐时间序列的新未来很感兴趣。我已经阅读了document about the design of SQL。但是,我对插入语句的语法感到困惑。

考虑到我们可能会在插入之前创建对齐的时间序列,为什么在插入对齐的时间序列时需要使用关键字'aligned',例如insert into root.sg.d2(time, s1, s2) aligned values(1, 1, 2)

我的问题是:为什么我们不能直接使用insert into root.sg.d2(time, s1, s2) values(1, 1, 2)?是否可以让 IoTDB 根据时间序列的元数据解析 SQL,然后自动插入值作为对齐的时间序列?

【问题讨论】:

    标签: apache-iotdb iotdb


    【解决方案1】:

    我们需要考虑自动创建模式的情况。如果 IoTDB 收到关于某个未创建时间序列的 SQL,IoTDB 可以根据关键字“aligned”的有无创建对齐时间序列或正常时间序列的架构。

    【讨论】:

      猜你喜欢
      • 2022-01-05
      • 1970-01-01
      • 2022-11-07
      • 1970-01-01
      • 2011-07-06
      • 2017-11-22
      • 2015-06-04
      • 2012-08-11
      • 2018-10-31
      相关资源
      最近更新 更多