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

Insert multiple duplicated columns in one row should be banned

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • None
    • 2022-2-Hou

    Description

      Currently, if we insert multiple same measurements in one insertion, it'll succeed in non-aligned timeseries but not in aligned timeseries. We need to ban this kind of behavior to unify them.

      IoTDB> insert into root.sg.d1(time,s1,s1) values(1,2,3)
      insert into root.sg.d1(time,s1,s1) values(1,2,3)
      Msg: The statement is executed successfully.
      IoTDB> select ** from root
      select ** from root
      +-----------------------------+-------------+
      |                         Time|root.sg.d1.s1|
      +-----------------------------+-------------+
      |1970-01-01T08:00:00.001+08:00|          3.0|
      +-----------------------------+-------------+
      Total line number = 1
      It costs 0.058s
      IoTDB> insert into root.sg.d2(time,s1,s1) aligned values(1,2,3)
      insert into root.sg.d2(time,s1,s1) aligned values(1,2,3)
      Msg: 500: [INTERNAL_SERVER_ERROR(500)] Exception occurred: executeNonQueryPlan failed. Index 1 out of bounds for length 1
      

      Attachments

        Issue Links

          Activity

            People

              haonan Haonan Hou
              haonan Haonan Hou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: