Skip to content

Groupby does not support predicate of list type #4170

@honglicheng

Description

@honglicheng

kind: [string]

_:A <kind> "dog" .
_:A <kind> "animal" .
_:B <kind> "cat" .
_:B <kind> "animal" .
@groupby(kind){
    count(uid)
}

i want to get :

{kind: "dog", count: 1}, {kind: "cat", count: 1}, {kind: "animal", count: 2}

but only get:

{kind: "dog", count: 1}, {kind: "cat", count: 1}

it seems that only the first item in the list can be grouped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stalearea/querylang/groupbyIssues related to the @groupby directive.kind/enhancementSomething could be better.status/needs-attentionThis issue needs more eyes on it, more investigation might be required before accepting/rejecting it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions