[
https://issues.apache.org/jira/browse/TINKERPOP-2648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17447939#comment-17447939
]
Stephen Mallette commented on TINKERPOP-2648:
---------------------------------------------
gremlint is meant for groovy/java flavor of Gremlin so I'd expect that to not
work so well. my preference would be to change gremlint to better support other
languages. obviously it's a bit more work to do so. Alternatively, I'd be open
to an a new {{NoSugarTypeTranslator}} that did as you are saying. You could
just extend the {{PythonTranslator.DefaultTypeTranslator}} and override the
methods for handling all the sugar translations. If you'd like to do that,
please create a new issue here in JIRA and target the {{3.5-dev}} branch.
> Translating to python drops limit steps
> ---------------------------------------
>
> Key: TINKERPOP-2648
> URL: https://issues.apache.org/jira/browse/TINKERPOP-2648
> Project: TinkerPop
> Issue Type: Bug
> Components: tinkergraph, translator
> Affects Versions: 3.5.1
> Reporter: Tom Kolanko
> Priority: Major
>
> When using PythonTranslator limit steps get dropped in favour of list slice
> functions
> For example:
> _g.V().outE().inV().path().by(elementMap()).limit(100)_
> gets translated to
> _g.V().outE().inV().path().by(__.elementMap())[0:100]_
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)