Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query causes duckdb internal error #165

Open
2 tasks done
dberardo-com opened this issue Nov 23, 2024 · 0 comments
Open
2 tasks done

Query causes duckdb internal error #165

dberardo-com opened this issue Nov 23, 2024 · 0 comments

Comments

@dberardo-com
Copy link

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: #161 (comment)
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?

  • Yes, I have

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

  • Yes, I have
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant