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

More precise error messages of slimit and soffset

    XMLWordPrintableJSON

    Details

      Description

      When using slimit/soffset with improper parameters, the error messages are confusing. For example:
      ```
      IoTDB> select count from root.group_0.d_0 slimit 10 soffset 10
      Msg: 500: toIndex = 20
      IoTDB> select count from root.group_0aaaa slimit 10 soffset 10
      Msg: 411: Meet error in query process: SOFFSET <SOFFSETValue>: SOFFSETValue exceeds the range.
      ```
      The result from the first example makes little sense to users, and I think it is probably not right even, since there are 100 measurements for each device.
      The second result is also confusing, "root.group_0aaaa" does not exist and that should be the root cause.

      The schemas are generated by IoTDB-benchmark with the following configurtions:
      ```
      #存储组数,必须小于等于设备数
      GROUP_NUMBER=3
      #总设备数
      DEVICE_NUMBER=10
      #每个设备的传感器数,总时间序列条数=DEVICE_NUMBER*SENSOR_NUMBER
      SENSOR_NUMBER=100
      ```

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jt2594838 Tian Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: