Skip to content

Truncated query during batching #787

@dmitrii-ubskii

Description

@dmitrii-ubskii

Description

Occasionally, a query seemingly gets truncated, which means it fails to parse on the server side. This seems to only happen during high volume loading.

Environment

  1. TypeDB distribution: Core
  2. TypeDB version: 3.5.0
  3. Environment: Ubuntu Linux 24.04.2 LTS
  4. Studio version: N/A
  5. Other details: Python driver 3.5.0

Reproducible Steps

  1. Set up

Clone typedb/typedb-benchmark, update typedb3 config to use 3.5.0 for server and driver, then run setup.

  1. Execute

Execute TPC-C: scalefactor = 1, warehouses = 4000, clients = 16.

  1. Unexpected result
2025-09-22 10:20:27,218 [loaderFunc:142] WARNING: Failed to load data:
[TQL0] [TQL03] TypeQL Error: There is a syntax error
parsing error: expected comparator, expression_base, or var
Near 13:34:

    match
    $d isa DISTRICT, has D_ID 31;
    insert
    $customer links (district: $d), isa CUSTOMER,
    has C_ID 93030,
    has C_FIRST "symyliejtq", has C_MIDDLE "OE", has C_LAST "BARABLEEING",
    has C_STREET_1 "eqnrbbcpisqrc", has C_STREET_2 "zzmsbgxddlfdzw",
    has C_CITY "wniaithhnkkk", has C_STATE "nw", has C_ZIP "556111111",
    has C_PHONE "2113993496672931", has C_SINCE 2025-09-22T10:20:26.016, has C_CREDIT "GC",
    has C_CREDIT_LIM 50000.0, has C_DISCOUNT 0.3623,
    has C_BALANCE -10.0, has C_YTD_PAYMENT 10.0,
--> has C_PAYMENT_CNT 1, has C_DELIVER
                                      ^
Caused: Error in usage of TypeQL.
Caused: [TSV7] Query parsing failed.

Expected result

The query executes as normal.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions