【问题标题】:Should time or timestamp be required as the first column in the insert SQL statement when using Apache IoTDB?使用 Apache IoTDB 时,插入 SQL 语句的第一列是否需要时间或时间戳?
【发布时间】:2021-12-21 08:38:08
【问题描述】:

v0.12.2 支持:

insert into root.test2.wf01.wt01(time, json ,`status`) values (111, "abcddf", true)

但不支持:

insert into root.test2.wf01.wt01(json, `status`, time) values ("abcddf", true, 111)

获取错误信息:

Msg: 401: line 1:34 mismatched input 'json' expecting {'.', '('}

我正在开发一个 ORM 工具。如果时间一定要在第一列,很多流行的ORM工具(hibernate、JPA、Spring Data)都无法集成IoTDB。

【问题讨论】:

    标签: database time-series apache-iotdb iotdb


    【解决方案1】:

    是的,我们需要插入 SQL 中的第一列作为时间... 我认为我们可以修改我们的 Antlr 解析器来支持它。 顺便问一下,你熟悉antlr4吗?我相信这不是一个大的修改。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-08-29
      • 1970-01-01
      • 1970-01-01
      • 2017-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多