Hi,
I hope this message finds you well. I am writing to seek assistance with an issue I've encountered while using the gremlin-python library to interact with graph database.
Issue Description:
I've noticed that running the same query consecutively produces inconsistent results. The first execution of the query returns an empty result set, while the subsequent execution returns a non-empty result set. I have not manually updated the graph database between these two queries.
Example:
Here's an example of the issue as demonstrated in an IPython interface:
# first time: query returns empty results
In [43]: db_query = transfer(content, g)
In [44]: db_query
Out[44]: [['V'], ['hasLabel', 'AssignStatement'], ['as', 'a1', 'a1__'], ['out', 'lhs'], ['out', '_type'], ['values', '_ipython_canary_method_should_not_exist_']]
In [45]: db_query.limit(10).to_list()
Out[45]: []
# second time: same query gets results
In [46]: db_query =
db_query = transfer(content, g)
# a comparison operator
In [47]: db_query == g.V().has_label('AssignStatement').as_('a1', 'a1__').out('lhs').out('_type')
Out[47]: True
In [48]: db_query.limit(10).to_list()
Out[48]: [v[898], v[30], v[926], v[30], v[30], v[30], v[58], v[30], v[58], v[33]]