You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Igor Sapego (Jira)" <ji...@apache.org> on 2021/01/25 21:37:00 UTC

[jira] [Created] (IGNITE-14058) Python Thin client: get boolean type return integers

Igor Sapego created IGNITE-14058:
------------------------------------

             Summary: Python Thin client: get boolean type return integers
                 Key: IGNITE-14058
                 URL: https://issues.apache.org/jira/browse/IGNITE-14058
             Project: Ignite
          Issue Type: Bug
          Components: python, thin client
    Affects Versions: python-0.3.4
            Reporter: Igor Sapego
            Assignee: Igor Sapego
             Fix For: python-0.4.0


Steps:
- put boolean value in cluster
{code}
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)
{code}
- get value
{code}
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])
{code}

Actual:
- return integers
{code}
0 1
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)