Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-14058

Python Thin client: get boolean type return integers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • python-0.3.4
    • python-0.4.0
    • python, thin client
    • None
    • Python thin client: Fixed issue that was causing boolean values to be returned as integers on cache get.
    • Release Notes Required

    Description

      Steps:

      • put boolean value in cluster
        from pyignite import Client
        from pyignite.datatypes import *
        client = Client()
        client.connect('127.0.0.1', 10800)
        cache = client.get_or_create_cache("test")
        cache.put(1, [True, False], key_hint=IntObject, value_hint=BoolArrayObject)
        
      • get value
        from pyignite import Client
        from pyignite.datatypes import *
        client = Client()
        client.connect('127.0.0.1', 10800)
        cache = client.get_or_create_cache("test")
        result = cache.get(1, key_hint=IntObject)
        print(*[str(arr_item).lower() for arr_item in result])
        

      Actual:

      • return integers
        0 1
        

      Attachments

        Issue Links

          Activity

            People

              isapego Igor Sapego
              isapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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