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

JCascalog not working - ClassCastException when calling Api.compileFlow #261

Closed
dkincaid opened this issue Oct 11, 2014 · 2 comments · Fixed by #280
Closed

JCascalog not working - ClassCastException when calling Api.compileFlow #261

dkincaid opened this issue Oct 11, 2014 · 2 comments · Fixed by #280

Comments

@dkincaid
Copy link
Contributor

When calling Api.compileFlow the object returned is a ClojureFlow Clojure record instead of a Cascading Flow object so a ClassCastException is thrown.

 java.lang.ClassCastException: cascalog.cascading.types.ClojureFlow cannot be cast to cascading.flow.Flow
at jcascalog.Api.compileFlow(Api.java:26)
at jcascalog.Api.compileFlow(Api.java:34)
dkincaid pushed a commit to dkincaid/cascalog that referenced this issue Oct 11, 2014
… into since

it can't deal with ClojureFlow records. Added a test to check
Api.compileFlow() method.

Also added synchronized keyword around all of the public static methods
in Api.

Added Api.flowDef() method so that JCascalog can get a hold of the
FlowDef object if desired.
Quantisan added a commit that referenced this issue Dec 30, 2014
Issue #261 - added a couple functions for JCascalog to call into since
@sritchie
Copy link
Collaborator

@dkincaid, is this all fixed with that new stuff you added?

@dkincaid
Copy link
Contributor Author

Yes. It is! Thanks.

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 a pull request may close this issue.

2 participants