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

Backend read #5004

Merged
merged 1 commit into from
Dec 19, 2018
Merged

Backend read #5004

merged 1 commit into from
Dec 19, 2018

Conversation

cseed
Copy link
Contributor

@cseed cseed commented Dec 19, 2018

Builds on: #4995

First of several (many) changes to rip out Java dependence from the mainline Python code. Move _to_java_ir to the SparkBackend. Eventually, only the Spark backend should call Java. Matrix/Table now gets it types from BaseIR.typ (which will eventually implement the (virtual) typing rules in Python). Matrix/Table explicitly call into the Spark backend to create _jmt/_jt, but those can be removed once the methods are all using IR.

@tpoterba giving this to you since you got the last one. Let me know if you would prefer me to spin the wheel.

@tpoterba
Copy link
Contributor

I'm happy to review this

@cseed
Copy link
Contributor Author

cseed commented Dec 19, 2018

@tpoterba @danking Ah, shit, wtf just happened? It says "cseed closed", I might have mis-clicked something. But how did it get merged without a code review?

@tpoterba
Copy link
Contributor

you closed the PR

@tpoterba
Copy link
Contributor

no merge?

@cseed
Copy link
Contributor Author

cseed commented Dec 19, 2018

Ah, it didn't get merged. But in the github UI, it says "Pull request successfully merged"!

@cseed
Copy link
Contributor Author

cseed commented Dec 19, 2018

And I can't re-open for some reason. I will re-PR from scratch. Sorry/thanks!

@tpoterba
Copy link
Contributor

https://github.com/hail-is/hail/commits/master not in commit history.

Something happened though...

@tpoterba
Copy link
Contributor

wait, you force-pushed current master as this branch

@tpoterba
Copy link
Contributor

which reduced the diff to 0, and GitHub automatically closed?

@tpoterba
Copy link
Contributor

just back up in the reflog, you should be able to re-force-push and reopen?

@cseed cseed reopened this Dec 19, 2018
@cseed
Copy link
Contributor Author

cseed commented Dec 19, 2018

wait, you force-pushed current master as this branch

Yep, I put the wrong hash in a rebase --onto and when it was the same as master, Github closed it and marked it as merged. Surprising! Fixed!

@@ -10,21 +12,36 @@ class Backend(object):
def interpret(self, ir):
return

@abc.abstractmethod
Copy link
Contributor

Choose a reason for hiding this comment

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

ah, nice. This will be the one entry point for types, and the rest will be handled in Python, right?


assert isinstance(self._global_type, tstruct), self._global_type
Copy link
Contributor

Choose a reason for hiding this comment

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

no more assertions? I'm OK removing these, I suppose

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put typecheck assertions on the ttable/tmatrix constructors. I thought that was good enough.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, totally.

@danking danking merged commit 07b91f4 into hail-is:master Dec 19, 2018
bcajes pushed a commit to bcajes/hail that referenced this pull request Jan 4, 2019
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