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

IMPORT DATABASE not work as expected #1540

Open
xtay opened this issue Apr 6, 2024 · 2 comments
Open

IMPORT DATABASE not work as expected #1540

xtay opened this issue Apr 6, 2024 · 2 comments

Comments

@xtay
Copy link

xtay commented Apr 6, 2024

ArcadeDB Version:

tried with 24.2.1, 24.1.1, 23.12.1

OS and JDK Version:

Linux 6.6.16-linuxkit - OpenJDK 64-Bit Server VM 11.0.22 (Temurin-11.0.22+7)
(docker image)

Expected behavior

exported database cannot be imported

Actual behavior

exported database should be imported

Steps to reproduce

  • create a database (e.g test) and build a simple graph (any graph is fine, it seems has nothing to do with the content)
  • export the database test with command: EXPORT DATABASE file://test.jsonl.gz OVERWRITE true
  • just drop and recreate the test database。
  • import file into current test database with command: IMPORT DATABASE file://exports/test.jsonl.gz WITH database = 'test'
  • after the import operation, test database ends with NOTHING inside...

SOME REMARK

I clone the source and try debug, it seems that the implementation of importers are all about import format from other kind of databases and never handles arcadedb's own format. seems to be a missing feature?

@xtay
Copy link
Author

xtay commented Apr 6, 2024

and unique field is missing from the exported jsonl

this is from the exported jsonl

"person_7_256124489999602":{"type":"LSM_TREE","bucket":"person_7","properties":["age"],"nullStrategy":"SKIP"}

and this is from select from schema: types

                {
                    "name": "person[age]",
                    "typeName": "person",
                    "type": "LSM_TREE",
                    "unique": false,
                    "properties": [
                        "age"
                    ],
                    "automatic": true
                },

@gramian
Copy link
Collaborator

gramian commented Apr 6, 2024

See also: #645

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

No branches or pull requests

2 participants