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

Improved CLI pretty print truncation #2869

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Conversation

MSebanc
Copy link
Collaborator

@MSebanc MSebanc commented Feb 12, 2024

I have read and agree to the CLA of the Kuzu repository.

Here is an example of pretty print row and column truncation:

kuzu> load from "dataset/shortest-path-tests/vPerson.csv" return *;
---------------------------------------------------------------------------------------------------------------------------
| column0 | column1   | column2 | column3 | column4 | ... | column9              | column10 | column11 | column12         |
---------------------------------------------------------------------------------------------------------------------------
| 2293    | Alice2293 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2294    | Alice2294 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2295    | Alice2295 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2296    | Alice2296 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2297    | Alice2297 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2298    | Alice2298 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2299    | Alice2299 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2300    | Alice2300 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2301    | Alice2301 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2302    | Alice2302 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2303    | Alice2303 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
|                                                            .                                                            |
|                                                            .                                                            |
|                                                            .                                                            |
---------------------------------------------------------------------------------------------------------------------------
| 2491    | Alice2491 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2492    | Alice2492 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2493    | Alice2493 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2494    | Alice2494 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2495    | Alice2495 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2496    | Alice2496 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2497    | Alice2497 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2498    | Alice2498 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2499    | Alice2499 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
| 2500    | Alice2500 | 1       | true    | false   | ... | 3 years 2 days 13... | [10,5]   | [Aida]   | [[10,8],[6,7,8]] |
---------------------------------------------------------------------------------------------------------------------------
(2499 tuples, 20 shown)
(13 columns, 9 shown)
Time: 0.70ms (compiling), 13.59ms (executing)

I have read and agree to the CLA of the Kuzu repository.
I have read and agree to the CLA of the Kuzu repository.
I have read and agree to the CLA of the Kuzu repository.
@MSebanc MSebanc merged commit 908d3c9 into kuzudb:master Feb 13, 2024
9 of 13 checks passed
@MSebanc MSebanc deleted the PrettyPrint branch February 13, 2024 15:41
@andyfengHKU andyfengHKU mentioned this pull request Apr 15, 2024
32 tasks
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.

2 participants