You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Daniel Kuppitz (JIRA)" <ji...@apache.org> on 2018/10/11 15:36:00 UTC

[jira] [Comment Edited] (TINKERPOP-2062) Add Traversal class to CoreImports

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

Daniel Kuppitz edited comment on TINKERPOP-2062 at 10/11/18 3:35 PM:
---------------------------------------------------------------------

I tried, but couldn't figure out how.


was (Author: dkuppitz):
I tried, but couldn't figure out why.

> Add Traversal class to CoreImports
> ----------------------------------
>
>                 Key: TINKERPOP-2062
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2062
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: server
>    Affects Versions: 3.3.3
>            Reporter: Daniel Kuppitz
>            Assignee: Daniel Kuppitz
>            Priority: Minor
>
> Apparently, some people like to copy Gremlin queries they've written in Java and paste them into the Gremlin console. This should usually work pretty well, however, there are some oddities in particular with {{union()}} step which requires you to cast the child traversals to {{Traversal}} if they have different return types, e.g.:
> {noformat}
> g.V().
> union(
>   __.identity(),
>   (Traversal)__.outE()
> )
> {noformat}
> This works in a local console session but fails if the query is sent to a server as {{Traversal}} is not part of the core imports. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)