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

Unequal value after bytes transformation by BytesUtils in Tsfile

    XMLWordPrintableJSON

Details

    Description

      In iotdb/tsfile, there seems to be some bugs in BytesUtils. BytesUtils.longToBytes is to transform data to bytes and BytesUtils.bytesToLong is to transform the bytes back to the data. The data after transformation is suppoesed to be equal to the data before transformation.

      However, in some cases and certain values of data, the value has changed after such transformation. The following examples shows a simple test of this problem.

       

      Attachments

        1. example-1.jpg
          259 kB
          Wendi He
        2. example-1-1.jpg
          315 kB
          Wendi He
        3. example-2.jpg
          378 kB
          Wendi He

        Issue Links

          Activity

            People

              Unassigned Unassigned
              WendiHe Wendi He
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: