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/export docs #120

Merged
merged 3 commits into from
Apr 9, 2024
Merged

Import/export docs #120

merged 3 commits into from
Apr 9, 2024

Conversation

prrao87
Copy link
Member

@prrao87 prrao87 commented Apr 8, 2024

This PR adds detailed docs for importing and exporting data from/to Kùzu. The usage of COPY FROM and COPY TO statements and others are described in detail.

@prrao87 prrao87 requested review from mewim and ray6080 and removed request for mewim April 8, 2024 16:16
Copy link
Contributor

@ray6080 ray6080 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

One additional thing we can document on COPY (not sure if we have it somewhere already or not, can you double check?): we support copy partial columns from a file as done in this PR.
An example is this

CREATE REL TABLE knows1 (FROM person TO person, nullDouble DOUBLE, date DATE, meetTime TIMESTAMP,
     validInterval INTERVAL, comments STRING[], summary STRUCT(locations STRING[],
    transfer STRUCT(day DATE, amount INT64[])), notes UNION(firstmet DATE, type INT16, comment STRING));
COPY knows1 (date, meetTime, validInterval, comments, summary, notes) FROM "dataset/tinysnb/eKnows.csv" ;

Thanks!

src/content/docs/export/parquet.md Outdated Show resolved Hide resolved
src/content/docs/export/parquet.md Outdated Show resolved Hide resolved
@prrao87
Copy link
Member Author

prrao87 commented Apr 9, 2024

Will address the partial column update in another PR.

@prrao87 prrao87 merged commit e013e3c into main Apr 9, 2024
2 checks passed
@prrao87 prrao87 deleted the import-export branch April 9, 2024 16:58
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

Successfully merging this pull request may close these issues.

None yet

2 participants