You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2019/11/06 17:45:00 UTC

[jira] [Commented] (TINKERPOP-2312) Empty keys to group() should group to null

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

Stephen Mallette commented on TINKERPOP-2312:
---------------------------------------------

Kinda wonder about other property getters like `value()`:

{code}
gremlin> g.V().values('age')
==>29
==>27
==>32
==>35
{code}

doesn't cause an error, but quietly behaves as a filter.....

> Empty keys to group() should group to null
> ------------------------------------------
>
>                 Key: TINKERPOP-2312
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2312
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.5.0
>            Reporter: Stephen Mallette
>            Priority: Major
>
> With TINKERPOP-2235 in place, {{null}} becomes valid to the language which means that we could fix:
> {code}
> gremlin> g.V().group().by('age')
> The property does not exist as the key has no associated value for the provided element: v[3]:age
> Type ':help' or ':h' for help.
> Display stack trace? [yN]n
> {code}
> so that users dont' need to do added filtering magic to deal with those kinds of exceptions. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)