cwida / duckpgq-extension

DuckDB extension that adds support for SQL/PGQ
https://duckpgq.notion.site/b8ac652667964f958bfada1c3e53f1bb?v=3b47a8d44bdf4e0c8b503bf23f1b76f2
MIT License
86 stars 7 forks source link

Query causes duckdb internal error #165

Open dberardo-com opened 1 day ago

dberardo-com commented 1 day ago

What happens?

INTERNAL Error: Attempted to access index 6 within vector of size 6 This error signals an assertion failure within DuckDB. This usually occurs due to unexpected conditions or errors in the program's logic. For more information, see https://duckdb.org/docs/dev/internal_errors

To Reproduce

download the database from: https://github.com/cwida/duckpgq-extension/discussions/161#discussioncomment-11212560 then run:

INSTALL duckpgq FROM community;
LOAD duckpgq;
import database 'access_control_graph';
-- init property graph

create or replace property graph access_control_graph
    VERTEX TABLES (operators label operator, groups label gr, resources label resource)
    EDGE TABLES (parent_of          SOURCE KEY (groupid1) REFERENCES groups (name)
                                    DESTINATION KEY (groupid2) REFERENCES groups (name),
                 responsible_for    SOURCE KEY (groupid1) REFERENCES groups (name)
                                    DESTINATION KEY (groupid2) REFERENCES groups (name),
                 has_permission     SOURCE KEY (groupid) REFERENCES groups (name)
                                    DESTINATION KEY (resourceid) REFERENCES resources (name),
                 belongs_to         SOURCE KEY (operatorid) REFERENCES operators (name)
                                    DESTINATION KEY (groupsid) REFERENCES groups (name));
FROM GRAPH_TABLE (access_control_graph MATCH (op:operator WHERE op.name='Operator1' )-[bt:belongs_to]->(g:gr WHERE g._type='NOP')-[rf:responsible_for]->(plant:gr WHERE plant._type='PLANT') -[hp:has_permission]-> (r:resource));

all good sofar, now run the same query adding {0,6} -->

FROM GRAPH_TABLE (access_control_graph MATCH (op:operator WHERE op.name='Operator1' )-[bt:belongs_to]->{0,6}(g:gr WHERE g._type='NOP')-[rf:responsible_for]->(plant:gr WHERE plant._type='PLANT') -[hp:has_permission]-> (r:resource));

this leads to error

OS:

windows

DuckDB Version:

1.1.0

DuckDB Client:

cli / .exe

Full Name:

db100

Affiliation:

private

How did you load the extension?

Community extension version

Did you include all relevant data sets for reproducing the issue?

No - Other reason (please specify in the issue body)

Did you include all code required to reproduce the issue?

Did you include all relevant configuration (e.g., CPU architecture, Python version, Linux distribution) to reproduce the issue?