[
https://issues.apache.org/jira/browse/TINKERPOP-2312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17017083#comment-17017083
]
ASF GitHub Bot commented on TINKERPOP-2312:
-------------------------------------------
spmallette commented on pull request #1240: TINKERPOP-2312 Empty keys to
group() should group to null
URL: https://github.com/apache/tinkerpop/pull/1240
https://issues.apache.org/jira/browse/TINKERPOP-2312
Basically, this:
```text
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
```
now does this:
```text
gremlin> g.V().groupCount().by('age')
==>[null:2,32:1,35:1,27:1,29:1]
```
which has its conveniences but also produces a result that would be easier
to follow for new users as opposed to the old exception.
All tests pass with `docker/build.sh -t -n -i`
VOTE +1
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> 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)