Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Bug: Segmentation fault on label() of list element #6050

@mdbenito

Description

@mdbenito

Kuzu version

v0.11.2

What operating system are you using?

Ubuntu 24.04

What happened?

With the following data:

CREATE NODE TABLE Person(name STRING PRIMARY KEY, occupation STRING);
CREATE REL TABLE LivesWith(FROM Person TO Person);
CREATE (p:Person {name: 'Alice'})-[:LivesWith]->(:Person {name: 'Bob'});

It is possible to extract a label from the path with:

MATCH p = (n)-[:LivesWith]->(m:Person {name: 'Bob'})
WITH nodes(p) AS ns
RETURN properties(ns, "_LABEL")[1];

But the following segfaults:

MATCH p = (n)-[:LivesWith]->(m:Person {name: 'Bob'})
WITH nodes(p) AS ns
RETURN label(ns[1]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions