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] Fix TableAggregateByKey with extended physical key #8729

Merged
merged 2 commits into from
May 7, 2020

Conversation

tpoterba
Copy link
Contributor

@tpoterba tpoterba commented May 7, 2020

Fixes #8694

@@ -1841,15 +1848,15 @@ case class TableAggregateByKey(child: TableIR, expr: IR) extends TableIR {

protected[ir] override def execute(ctx: ExecuteContext): TableValue = {
val prev = child.execute(ctx)
val prevRVD = prev.rvd
val prevRVD = prev.rvd.truncateKey(child.typ.key.length)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it's simpler and clearer to use prev.rvd.truncateKey(child.typ.key), which makes the assertion below redundant.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, good call. didn't find that method.

@danking danking merged commit 57ff75e into hail-is:master May 7, 2020
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.

TableAggregateByKey AssertionError
3 participants