[
https://issues.apache.org/jira/browse/IGNITE-10230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16695716#comment-16695716
]
Dmitry Melnichuk commented on IGNITE-10230:
-------------------------------------------
This task partially duplicates IGNITE-10358. Please see the comment and pull
request there.
The code
{code:python}
cache.put(1, (1, [
(datetime.strptime('2018-10-31T19:43:34.264437', '%Y-%m-%dT%H:%M:%S.%f'),
264437),
(datetime.strptime('2018-10-31T19:43:34.264438', '%Y-%m-%dT%H:%M:%S.%f'),
264438),
]), key_hint=IntObject, value_hint=CollectionObject)
{code}
should be rephrased as
{code:python}
cache.put(1, (1, [
((datetime.strptime('2018-10-31T19:43:34.264437', '%Y-%m-%dT%H:%M:%S.%f'),
264437), TimestampObject),
((datetime.strptime('2018-10-31T19:43:34.264438', '%Y-%m-%dT%H:%M:%S.%f'),
264438), TimestampObject)
]), key_hint=IntObject, value_hint=CollectionObject)
{code}
This looks quite ugly, but {{Timestamp}} have no direct analog in Python
standard data types. I feel that some clumsiness was inevitable.
> Putting collection of timestamps fails on python thin client
> -------------------------------------------------------------
>
> Key: IGNITE-10230
> URL: https://issues.apache.org/jira/browse/IGNITE-10230
> Project: Ignite
> Issue Type: Task
> Components: thin client
> Affects Versions: 2.6
> Reporter: Pavel Petroshenko
> Assignee: Dmitry Melnichuk
> Priority: Major
> Fix For: 2.8
>
>
> Here's the test that fails:
> https://gist.github.com/pilshchikov/7434805b7d95973afe600e1c0c83d17a
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)