typedb / typedb-studio

TypeDB Studio (IDE)
https://typedb.com
Mozilla Public License 2.0
195 stars 44 forks source link

Can be Aggregate used in query? #398

Closed selmeci closed 3 years ago

selmeci commented 3 years ago

Description

Cannot query with aggregation because offset 0; limit 30; is always added to query.

Environment

  1. Grakn version: Grakn Core 2.0.1
  2. OS of Grakn server: Linux Mint 20.1 Cinnamon
  3. Workbase version: 2.0.1
  4. OS of Workbase: Linux Mint 20.1 Cinnamon
  5. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Query:
    match
    $d isa device;
    (from: $d) isa sim-rank, has coefficient > 0.5;
    get $d; count; offset 0; limit 30;

    I cannot run it without offset 0; limit 30; because it is added by default.

  2. Error
    Error: 13 INTERNAL: [GQL03] Graql Error: There is a syntax error at line 4:get $d; count; offset 0; limit 30;               ^mismatched input 'offset' expecting {'match', 'define', 'undefine', 'insert', 'compute'} Please check server logs for the stack trace.

Expected Output

I can specify if I want use offset+limit.

Actual Output

It is not possible right now.

Additional information

image

alexjpwalker commented 3 years ago

This is not possible currently, but will be added in a future release.

alexjpwalker commented 3 years ago

This issue is now tracked here:

alexjpwalker commented 3 years ago

Duplicate of #438