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

Dereference unique_ptr that is NULL on osx_86-64 in the CI #128

Closed Dtenwolde closed 3 months ago

Dtenwolde commented 4 months ago

Getting the following error in some runs of the CI, not all of them. Results to reproduce this locally using export OSX_BUILD_ARCH=x86_64 and running the tests have been unsuccessful. Link to failed build

================================================================================
Query unexpectedly failed (/Users/runner/work/community-extensions/community-extensions/test/sql/scalar/local_clustering_coefficient.test:131)
================================================================================
select a.id, a.name, local_clustering_coefficient from local_clustering_coefficient(pg, student, know), student a where a.id = lcc.id;
================================================================================
Actual result:
INTERNAL Error: Attempted to dereference unique_ptr that is NULL!
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

Seems to happen during this test:


CREATE TABLE Student(id BIGINT, name VARCHAR);INSERT INTO Student VALUES (0, 'Daniel'), (1, 'Tavneet'), (2, 'Gabor'), (3, 'Peter'), (4, 'David');

CREATE TABLE know(src BIGINT, dst BIGINT, createDate BIGINT);INSERT INTO know VALUES (0,1, 10), (0,2, 11), (0,3, 12), (3,0, 13), (1,2, 14), (1,3, 15), (2,3, 16), (4,3, 17);

CREATE TABLE Foo(id BIGINT);INSERT INTO Foo VALUES (0), (1), (2), (3), (4);

-CREATE PROPERTY GRAPH pg
VERTEX TABLES (
    Student,
    Foo
    )
EDGE TABLES (
    know    SOURCE KEY ( src ) REFERENCES Student ( id )
            DESTINATION KEY ( dst ) REFERENCES Student ( id )
    );

select a.id, a.name, local_clustering_coefficient from local_clustering_coefficient(pg, student, know), student a where a.id = lcc.id;
Dtenwolde commented 4 months ago

I could use jewels09 or jewels08 but unable to access those at the moment.

Dtenwolde commented 3 months ago

Unable to reproduce. Will close for now but see if it pops up in the CI again