You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating/connecting to a Kùzu database in the CLI, adding a trailing slash in the path to the DB causes an IO exception (it shouldn't, the path is valid).
Example for creating a local DB called testdb
.$ /kuzu_shell ./testdb/
Opened the database at path: ./testdb/ in read-write mode.
Enter ":help" for usage hints.
IO exception: Failed to create directory ./testdb/ due to: IO exception: Directory ./testdb/ cannot be created. Check if it exists and remove it.
Expected behaviour is that the DB directory is created without errors.
The text was updated successfully, but these errors were encountered:
prrao87
changed the title
[cli]: Trailing slash in connecting to Kùzu database does not work
[cli]: Trailing slash in connecting to Kùzu database causes IO exception
Apr 23, 2024
prrao87
changed the title
[cli]: Trailing slash in connecting to Kùzu database causes IO exception
[cli]: Trailing slash in Kùzu db path causes IO exception
Apr 23, 2024
I think it is a bug in libc++ as described here: llvm/llvm-project#60634
Reason:
std::filesystem::create_directories("./testdb/ ") returns a failure, even when succeeding.
From strace, I can see the lib implem considers ./testdb/ to be different than ./testdb (2 mkdir, 2 stat).
It does mkdir("./testdb/"), which passes, then mkdir("./testdb") which failed (directory exists).
When creating/connecting to a Kùzu database in the CLI, adding a trailing slash in the path to the DB causes an IO exception (it shouldn't, the path is valid).
Example for creating a local DB called
testdb
Expected behaviour is that the DB directory is created without errors.
The text was updated successfully, but these errors were encountered: