[ https://issues.apache.org/jira/browse/IGNITE-9991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16663070#comment-16663070 ]
Dmitry Melnichuk commented on IGNITE-9991: ------------------------------------------ I can confirm the bug on Python. Moreover, I did similar test with Java, and got similar results. Looks like it is a server bug. Maybe we should re-target the issue? Java code (sorry, I am no good in languages other than Python): {code:java} import org.apache.ignite.Ignition; import org.apache.ignite.client.ClientCache; import org.apache.ignite.client.IgniteClient; import org.apache.ignite.configuration.ClientConfiguration; import org.apache.ignite.client.ClientException; public class ArrayKey { public static void main(String[] args) { ClientConfiguration cfg = new ClientConfiguration().setAddresses("127.0.0.1:10800"); try (IgniteClient igniteClient = Ignition.startClient(cfg)) { ClientCache<Boolean[], Integer> cache = igniteClient.getOrCreateCache("test"); Boolean[] array_key = new Boolean[2]; array_key[0] = true; array_key[1] = false; cache.put(array_key, 42); System.out.println("Reach get()"); int result = cache.get(array_key); System.out.println(result); } catch (ClientException e) { System.err.println(e.getMessage()); } catch (Exception e) { System.err.format("Unexpected failure: %s\n", e); } } } {code} Output: {code} Reach get() Unexpected failure: java.lang.NullPointerException {code} > thin clients: can't use array as cache key for PHP, JS and Python clients > ------------------------------------------------------------------------- > > Key: IGNITE-9991 > URL: https://issues.apache.org/jira/browse/IGNITE-9991 > Project: Ignite > Issue Type: Bug > Components: thin client > Affects Versions: 2.7 > Reporter: Stepan Pilschikov > Priority: Major > > Trying to put cache with key as values array > Put Py code > {code} > cache = client.get_or_create_cache("PY_BOOLEAN_ARRAY") > cache.put([True, False], 1, key_hint=BoolArrayObject, value_hint=IntObject) > {code} > Get > {code} > cache = client.get_or_create_cache("PY_BOOLEAN_ARRAY") > print(cache.get([True, False] key_hint=BoolArrayObject)) > {code} > output: null > Same thing with PHP, JS clients and all others array data types -- This message was sent by Atlassian JIRA (v7.6.3#76005)