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

Prepare Chapter14 #29

Merged
merged 5 commits into from
Sep 23, 2024
Merged

Prepare Chapter14 #29

merged 5 commits into from
Sep 23, 2024

Conversation

yokomotod
Copy link
Owner

@yokomotod yokomotod commented Sep 16, 2024

14章の差分のまえのいろいろ

  • int => int32変更
  • アクセスしたblock数を計測する機能
  • MaterializePlanのテスト(動作確認がてら書いたのでコミット)
  • BetterSortPlan追加( multibefferじゃないけど1 block分でquick sortするやつ

Copy link
Collaborator

@hiro-o918 hiro-o918 left a comment

Choose a reason for hiding this comment

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

ざっとですが LGTM

buff := bm.findExistingBuffer(blk)
blockAccessed := 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

[ask] enum かと思ったんですが、これは単にアクセスすうですか?

Copy link
Owner Author

Choose a reason for hiding this comment

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

@hiro-o918 です。

StatInfo.BlocksAccessed() とかに合わせたつもりだったんですが block*s*Accessed になってなかったので修正しました 89d4ee1

return 0, fmt.Errorf("vals2 has no key %s", fieldName)
}

if !val1.Equals(val2) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

[ask]
これは最初に equals じゃなくなったもので sort するということです?

Copy link
Owner Author

@yokomotod yokomotod Sep 23, 2024

Choose a reason for hiding this comment

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

@hiro-o918

sortではなく大小比較ですね。(この関数を使ってsortするのはそう) rc.Fields の複数キーでの比較で、スライスの順序=比較優先順

もともとの Compare() と同様(27行目

Base automatically changed from logger to main September 23, 2024 16:47
@yokomotod yokomotod merged commit 015e66b into main Sep 23, 2024
2 checks passed
@yokomotod yokomotod deleted the prepare-ch14 branch September 23, 2024 17:01
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