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

MapEntries IR; use in annotate. #3176

Merged
merged 6 commits into from
Mar 20, 2018
Merged

Conversation

catoverdrive
Copy link
Contributor

@catoverdrive catoverdrive commented Mar 19, 2018

I'm going to merge select/drop/annotate on the scala side in a separate PR. For now annotateEntriesExpr uses the IR path if possible for testing.

Copy link
Contributor

@tpoterba tpoterba left a comment

Choose a reason for hiding this comment

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

small things

@@ -4,7 +4,7 @@


def startTestHailContext():
hail.init(master='local[2]', min_block_size=0, quiet=True)
hail.init(master='local[2]', min_block_size=0)
Copy link
Contributor

Choose a reason for hiding this comment

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

unintentional change

.bind("va", child.typ.rvRowType)
.bind("sa", TArray(child.typ.colType))
)
child.typ.copy(rvRowType=newRow.typ)
Copy link
Contributor

Choose a reason for hiding this comment

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

style - should have spaces

val globals = rvb.end()

rvb.start(localColsType)
rvb.addAnnotation(localColsType, colValuesBc.value)
Copy link
Contributor

Choose a reason for hiding this comment

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

prefer addUnsafeArray here

Copy link
Contributor

Choose a reason for hiding this comment

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

and :( this is going to be so slow, the off-heap changes can't come fast enough!

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm having a bit of trouble reasoning about this. rv.region is usually the same region for every record, right? Is this going to mean that the sample annotations are added to the region once for every record in a partition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

:( yes. But we can't get around that right now since we're not creating the original region.

Copy link
Contributor

Choose a reason for hiding this comment

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

this might be untenable, even in the short term. Let's discuss at checkin

Copy link
Contributor Author

Choose a reason for hiding this comment

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

re: addUnsafeArray---I kind of prefer the consistency of addAnnotation. It calls addUnsafeArray in the UnsafeIndexedSeq case anyways.

@catoverdrive catoverdrive dismissed tpoterba’s stale review March 20, 2018 16:13

addressed comments and disabled IR path for now.

@tpoterba tpoterba merged commit 1880811 into hail-is:master Mar 20, 2018
jbloom22 pushed a commit to jbloom22/hail that referenced this pull request Mar 22, 2018
* wip

* add MapEntries, use in annotate_entries

* fix test

* fix

* fix and disable

* use IR for smol col annotations
konradjk pushed a commit to konradjk/hail that referenced this pull request Jun 12, 2018
* wip

* add MapEntries, use in annotate_entries

* fix test

* fix

* fix and disable

* use IR for smol col annotations
jackgoldsmith4 pushed a commit to jackgoldsmith4/hail that referenced this pull request Jun 25, 2018
* wip

* add MapEntries, use in annotate_entries

* fix test

* fix

* fix and disable

* use IR for smol col annotations
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