Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-5741

[ template ] template does not need to have aligned/unaligned attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0-SNAPSHOT
    • None
    • None
    • 2023-3-Schema

    Description

      问题描述:
      template 不需要区分对齐/非对齐 属性。
      https://iotdb.apache.org/zh/UserGuide/Master/Operate-Metadata/Template.html
      用户手册需要去掉 aligned的定义

      用例:
      create schema template t1 (s_0 FLOAT)
      create database root.db1;
      set schema template t1 to root.db1;
      create timeseries of schema template on root.db1.t1;
      create database root.db2;
      set schema template t1 to root.db2;
      create aligned timeseries of schema template on root.db2.t1; //报错,可以考虑支持么?
      Msg: 700: Error occurred while parsing SQL to physical plan: line 1:26 mismatched input 'of' expecting ROOT
      insert into root.db2.t1(time,s_0) aligned values(1,1); //报错
      Msg: 609: timeseries under this device are not aligned, please use non-aligned interface (Path: root.db2.t1)
      template 不区分 对齐/ 非对齐属性后,此insert 应该成功。

      如果区分对齐/非对齐属性,也会和下面的用例矛盾,下面的用例把非对齐template t1 set到对齐设备root.db3.t1上,成功,写入数据成功。
      create database root.db3;
      create aligned timeseries root.db3.t1(s_0 FLOAT );

      set schema template t1 to root.db3.t1; // 非对齐template t1 set到对齐设备root.db3.t1上
      insert into root.db3.t1(time,s_0) aligned values(1,1); //写入数据 ,成功


      Attachments

        1. image-2023-03-29-15-35-56-673.png
          35 kB
          刘珍
        2. image-2023-03-29-15-38-10-551.png
          55 kB
          刘珍
        3. screenshot-1.png
          21 kB
          刘珍

        Activity

          People

            Marcoss Yukun Zhou
            刘珍 刘珍
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: