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

18098: KUDU-3197 [tserver] optimal Schema's memory used, using std::s… #38

Conversation

shenxingwuying
Copy link
Contributor

create the pr, just for code-review

@@ -191,8 +191,8 @@ class MergeIterState : public boost::intrusive::list_base_hook<> {
}

// Returns the schema from the underlying iterator.
const Schema& schema() const {
return DCHECK_NOTNULL(iwb_.iter)->schema();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

我自提一个。 这个接口是不是不需要变化?

Copy link
Member

Choose a reason for hiding this comment

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

函数原型应该可以保持不变

@@ -57,7 +57,7 @@ class IteratorBase {
virtual std::string ToString() const = 0;

// Return the schema for the rows which this iterator produces.
virtual const Schema &schema() const = 0;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

我自己提一个。 这个接口或许保持即可。

当前schema的保持,应该new Iterator是有 options。
用它保持,应该可以的。

Copy link
Member

Choose a reason for hiding this comment

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

可以保持不变。

再改一波吧,应该能继续减少改动量

@acelyc111 acelyc111 closed this Jan 6, 2022
@acelyc111
Copy link
Member

Thanks for your contribution!
Please submit code review on gerrit, see: https://kudu.apache.org/docs/contributing.html#_contributing_patches_using_gerrit
For draft, you can open a pull request on your own repo.

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