Skip to content

Commit 3d2bfd6

Browse files
authored
Fix %%gremlin profile serializer issue on Neptune DB <=1.2.x (#694)
* Use backwards compatible default serializer for Gremlin profile * update changelog
1 parent 077c118 commit 3d2bfd6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Starting with v1.31.6, this file will contain a record of major features and upd
1010
- Added `--export-to` JSON file option to `%%graph_notebook_config` ([Link to PR](https://github.com/aws/graph-notebook/pull/684))
1111
- Improved iPython config directory retrieval logic ([Link to PR](https://github.com/aws/graph-notebook/pull/687))
1212
- Fixed `%db_reset` output for token modes ([Link to PR](https://github.com/aws/graph-notebook/pull/691))
13+
- Fixed `%%gremlin profile` serialization issue on Neptune DB v1.2 and older ([Link to PR](https://github.com/aws/graph-notebook/pull/694))
1314
- Use `extras_require` to specify tests ([Link to PR](https://github.com/aws/graph-notebook/pull/688))
1415
- Updated Gremlin HTTP requests, fixed handling of internal error responses ([Link to PR](https://github.com/aws/graph-notebook/pull/692))
1516

src/graph_notebook/magics/graph_magic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,9 +1127,9 @@ def gremlin(self, line, cell, local_ns: dict = None):
11271127
'the profile report by default.')
11281128
parser.add_argument('--profile-chop', type=int, default=250,
11291129
help='Property to specify max length of profile results string. Default is 250')
1130-
parser.add_argument('--profile-serializer', type=str, default='GRAPHSON_V3_UNTYPED',
1130+
parser.add_argument('--profile-serializer', type=str, default='GRAPHSON_V3',
11311131
help='Specify how to serialize results. Allowed values are any of the valid MIME type or '
1132-
'TinkerPop driver "Serializers" enum values. Default is GRAPHSON_V3_UNTYPED')
1132+
'TinkerPop driver "Serializers" enum values. Default is GRAPHSON_V3')
11331133
parser.add_argument('--profile-indexOps', action='store_true', default=False,
11341134
help='Show a detailed report of all index operations.')
11351135
parser.add_argument('--profile-debug', action='store_true', default=False,

0 commit comments

Comments
 (0)