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

[query] Stage IndexReader #12159

Merged
merged 11 commits into from
Sep 10, 2022
Merged

[query] Stage IndexReader #12159

merged 11 commits into from
Sep 10, 2022

Conversation

tpoterba
Copy link
Contributor

@tpoterba tpoterba commented Sep 6, 2022

look at that deleted code! Good riddance.

@tpoterba
Copy link
Contributor Author

tpoterba commented Sep 6, 2022

The important new stuff is mostly in StagedIndexReader, which translates a subset of the operations on IndexReader.scala.

Copy link
Collaborator

@chrisvittal chrisvittal left a comment

Choose a reason for hiding this comment

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

one nit, lgtm otherwise

@@ -95,15 +95,11 @@ class StagedIndexReader(emb: EmitMethodBuilder[_], spec: AbstractIndexSpec) {
endQuerySettable.asBaseStruct.loadField(cb, 0).get(cb).asInt64.value -
startQuerySettable.asBaseStruct.loadField(cb, 0).get(cb).asInt64.value
)
cb.assign(startLeaf, cb.memoize(startQuerySettable.asBaseStruct.loadField(cb, 1)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

is the memoize call needed, aren't we assigning it to a variable anyways?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope, fixed

Copy link
Collaborator

@chrisvittal chrisvittal left a comment

Choose a reason for hiding this comment

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

🎉

@danking danking merged commit 1f3de95 into hail-is:main Sep 10, 2022
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.

3 participants