[ 
https://issues.apache.org/jira/browse/TINKERPOP-1807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16234981#comment-16234981
 ] 

ASF GitHub Bot commented on TINKERPOP-1807:
-------------------------------------------

GitHub user davebshow opened a pull request:

    https://github.com/apache/tinkerpop/pull/741

    TINKERPOP-1807 Gremlin-Python doesn't support GraphSON types g:Date, 
g:Timestamp and g:UUID

    https://issues.apache.org/jira/browse/TINKERPOP-1807
    
    This PR add support for GraphSON types `UUID`, `Date`, and `Timestamp` as 
well as associated tests. `UUID` and `Date` are straightforward, as the Python 
standard library includes `Date` (`datetime.datetime`) and `UUID` (`uuid.UUID`) 
objects. However, in Python, a timestamp is just a float, so in order to 
support serialization to a GraphSON type Timestamp, I added a dummy class 
`timestamp` to the `statics` module, similar to the `long` class for Python 3.
    
    Note, another PR will be required for master with implementations for both 
GraphSON2 and 3. I will open upon approval of this one.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/apache/tinkerpop TINKERPOP-1807

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tinkerpop/pull/741.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #741
    
----
commit 3b651ff58cdf210a63a0101d0a311c7076de2b0e
Author: davebshow <[email protected]>
Date:   2017-11-01T23:31:10Z

    Implemented support for missing core GraphSON types in gremlin-python

----


> Gremlin-Python doesn't support GraphSON types g:Date, g:Timestamp and g:UUID
> ----------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1807
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1807
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: python
>    Affects Versions: 3.3.0, 3.2.6
>            Reporter: Florian Hockmann
>            Priority: Major
>
> Apparently the GraphSON types {{g:Date}}, {{g:Timestamp}} and {{g:UUID}} are 
> currently not supported in Gremlin-Python.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to