Mayil-AI-Sandbox / kuzudb_jan15

MIT License
0 stars 0 forks source link

Strange behaviour with tables (hashtag2775) #31

Open vikramsubramanian opened 4 months ago

vikramsubramanian commented 4 months ago

The following queries cause some weird behaviour with kuzu

create node table Person(id serial, primary key(id));
create rel table Knows(FROM Person TO Person);
create (:Person {id: 0});

From the last query, I get a strange error message: Error: Cannot write to file. path: tmpdatabase/data.kz fileDescriptor: 7 offsetToWrite: 17592186040320 numBytesToWrite: 4096 numBytesWritten: 18446744073709551615. Error: File too large When dropping the table:

drop table Knows;

Kuzu hangs. I've tried this both on my local computer and on the servers. )

mayil-ai[bot] commented 4 months ago

Summary: Strange behavior with table creation and dropping causing error messages and hanging in Kuzu.

Possible Solution

Based on the error message provided, the issue seems to be related to a file system limitation where the file size exceeds the maximum allowed by the system. The error message indicates an attempt to write to a file at a very large offset (offsetToWrite: 17592186040320), which suggests that the file has grown too large.

To resolve the issue:

Code snippets to check