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

Added shell commands to control truncation #2876

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Conversation

MSebanc
Copy link
Collaborator

@MSebanc MSebanc commented Feb 13, 2024

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

I have read and agree to the CLA of the Kuzu repository.
maxRows = defaultMaxRows;
} else {
maxRows = parsedMaxRows;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can inline this if else statement.
maxRows = maxRows == 0 ? defaultMaxRows : parsedMaxRows;
What if the parsedMaxRows is also 0?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is a typo, it is supposed to be if parsedMaxRows is 0. Thanks!

private:
std::unique_ptr<Database> database;
std::unique_ptr<Connection> conn;
const char* path_to_history;
uint64_t maxRows;
Copy link
Collaborator

Choose a reason for hiding this comment

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

rename to maxRowSize?

I have read and agree to the CLA of the Kuzu repository.
@MSebanc MSebanc merged commit 393567c into kuzudb:master Feb 13, 2024
9 of 13 checks passed
@MSebanc MSebanc deleted the Rows branch February 13, 2024 18:07
@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