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

[cli]: Importing an empty database just hangs (does nothing) #3416

Closed
prrao87 opened this issue Apr 30, 2024 · 1 comment
Closed

[cli]: Importing an empty database just hangs (does nothing) #3416

prrao87 opened this issue Apr 30, 2024 · 1 comment
Assignees
Labels

Comments

@prrao87
Copy link
Member

prrao87 commented Apr 30, 2024

I enter the CLI with a new Kùzu database ./test_db. I exported an empty database to a directory ./new. Then, within the same CLI session, I try to import ./new back into ./test_db. I verified that the export worked, and the .cypher files are empty. However, upon import, the CLI just hangs and does nothing (the import never completes).

$ ./kuzu_shell ./test_db                                                                                                                                                                                                           
Opened the database at path: ./test_db in read-write mode.
Enter ":help" for usage hints.
kuzu> EXPORT DATABASE './new';
-----------------------------------
| result                          |
-----------------------------------
| Exported database successfully. |
-----------------------------------
(1 tuple)
(1 column)
Time: 0.07ms (compiling), 0.28ms (executing)
kuzu> IMPORT DATABASE './new';

Expected behaviour

The expectation is that if I import an empty database (i.e., the copy.cypher is empty), the import operation would still complete and my new database would still be empty. Alternatively, we could print out a warning stating that the imported database has nothing in it (because copy.cypher was empty).

@andyfengHKU
Copy link
Contributor

Should be fixed in #3419

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

No branches or pull requests

3 participants