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

PyClient: Override __eq__() of TSDataType, TSEncoding and Compressor to avoid unexpected comparation behaviour

    XMLWordPrintableJSON

Details

    • 2021-12-Su

    Description

       

      The issue is described in https://stackoverflow.com/questions/26589805/python-enums-across-modules and https://bugs.python.org/issue30545

       

       

      The root cause is the way we use import in our Python client. In order to minimize the cost of repairing the problem, we can fix as the following way:

       

       

      It doesn't solve the problem fundamentally, but it can avoid all the problems.

       

      Attachments

        1. image-2021-12-15-11-15-20-245.png
          233 kB
          Steve Yurong Su
        2. image-2021-12-15-11-46-49-300.png
          51 kB
          Steve Yurong Su
        3. image-2021-12-15-11-46-59-181.png
          79 kB
          Steve Yurong Su
        4. image-2021-12-15-11-47-13-288.png
          7 kB
          Steve Yurong Su

        Activity

          People

            suyurong Steve Yurong Su
            suyurong Steve Yurong Su
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified