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

Align by device related code type conversion failed, and an error occurred

    XMLWordPrintableJSON

Details

    Description

      Use align by device function:

      select * from root.database.student align by device(any similar sql align by device)

      Will print error:

      Msg: 500: [INTERNAL_SERVER_ERROR] Exception occurred: "select * from root.database.student align by device". executeStatement failed. org.apache.iotdb.db.metadata.mnode.EntityMNode cannot be cast to org.apache.iotdb.db.metadata.mnode.IMeasurementMNode

       

      Reason:

      Children may be path or root node. ("country" and "score" belong path, and "anhui" belongs path)if it belong to path node, they don't need to type cast and add their schema to the res. Otherwise, In 1276 lines, child not instance of IMeasurementMNode type ,so will throw ClassCastException. 

       

      The actual stored time series is shown in the figure below.

      Attachments

        1. screenshot-1.png
          119 kB
          xieqijun
        2. image-2021-09-15-22-08-44-487.png
          867 kB
          xieqijun

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jun0315 xieqijun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: