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

enhance: optimize kv metadata and fix first large row group #142

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

shaoting-huang
Copy link
Collaborator

issue: #127

@sre-ci-robot sre-ci-robot requested review from sunby and tedxu September 3, 2024 09:22
@sre-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: shaoting-huang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Collaborator

@tedxu tedxu left a comment

Choose a reason for hiding this comment

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

/lgtm

return Status::OK();
}

int64_t ParquetFileWriter::count() { return count_; }

Status ParquetFileWriter::Close() {
std::stringstream ss;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we just write bytes rather than comma-separated-strings?

for (int i = 0; i < record->num_columns(); ++i) {
std::shared_ptr<arrow::Array> column = record->column(i);
if (!column) {
throw std::runtime_error("Column is null");
Copy link
Collaborator

Choose a reason for hiding this comment

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

The error handling is supposed to be either exception or return value of type Result, not both. BTW, I don't think it's necessary to check null here.

@sre-ci-robot sre-ci-robot merged commit 8883c9c into milvus-io:main Sep 3, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants