You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/09/23 16:12:39 UTC

[1/3] tinkerpop git commit: Fixed issue in NumberSerializer where a 64bit integer is misidentified as 32bit

Repository: tinkerpop
Updated Branches:
  refs/heads/master 230515947 -> 8eefb7062


Fixed issue in NumberSerializer where a 64bit integer is misidentified as 32bit

Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/5573def4
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/5573def4
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/5573def4

Branch: refs/heads/master
Commit: 5573def4a93072a79b66b3bb2e8a1727256b2d3e
Parents: 9004b4b
Author: Carlos Cheung <ca...@tumvi.com>
Authored: Wed Sep 14 22:15:49 2016 -0400
Committer: GitHub <no...@github.com>
Committed: Wed Sep 14 22:15:49 2016 -0400

----------------------------------------------------------------------
 .../src/main/jython/gremlin_python/structure/io/graphson.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/5573def4/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
index fd13ae9..aae3ab2 100644
--- a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
+++ b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
@@ -181,7 +181,7 @@ class NumberSerializer(GraphSONSerializer):
     def _dictify(self, number):
         if isinstance(number, bool):  # python thinks that 0/1 integers are booleans
             return number
-        elif isinstance(number, long):
+        elif isinstance(number, long) or (number > 2147483647): # in python all numbers are int unless specified otherwise
             return _SymbolHelper.objectify("Int64", number)
         elif isinstance(number, int):
             return _SymbolHelper.objectify("Int32", number)


[2/3] tinkerpop git commit: Graphson int32 is signed

Posted by sp...@apache.org.
Graphson int32 is signed

Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/b214954e
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/b214954e
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/b214954e

Branch: refs/heads/master
Commit: b214954ecdd30357ddadc8fc3c07f0dcd4de5036
Parents: 5573def
Author: Carlos Cheung <ca...@tumvi.com>
Authored: Sun Sep 18 23:33:27 2016 -0400
Committer: GitHub <no...@github.com>
Committed: Sun Sep 18 23:33:27 2016 -0400

----------------------------------------------------------------------
 .../src/main/jython/gremlin_python/structure/io/graphson.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/b214954e/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
index aae3ab2..638c86e 100644
--- a/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
+++ b/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
@@ -181,7 +181,7 @@ class NumberSerializer(GraphSONSerializer):
     def _dictify(self, number):
         if isinstance(number, bool):  # python thinks that 0/1 integers are booleans
             return number
-        elif isinstance(number, long) or (number > 2147483647): # in python all numbers are int unless specified otherwise
+        elif isinstance(number, long) or (abs(number) > 2147483647): # in python all numbers are int unless specified otherwise
             return _SymbolHelper.objectify("Int64", number)
         elif isinstance(number, int):
             return _SymbolHelper.objectify("Int32", number)


[3/3] tinkerpop git commit: Merge branch 'pr-418'

Posted by sp...@apache.org.
Merge branch 'pr-418'


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8eefb706
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8eefb706
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8eefb706

Branch: refs/heads/master
Commit: 8eefb706210c9847b0c0b5cb4f24e9ddfe254791
Parents: 2305159 b214954
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Sep 23 12:12:23 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Sep 23 12:12:23 2016 -0400

----------------------------------------------------------------------
 .../src/main/jython/gremlin_python/structure/io/graphson.py        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8eefb706/gremlin-python/src/main/jython/gremlin_python/structure/io/graphson.py
----------------------------------------------------------------------