We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a graph, g, which is roughly 4.5M vertices and 43M edges as:
scala> g res10: org.graphframes.GraphFrame = GraphFrame(v:[id: int], e:[src: int, dst: int])
I would like to calculate the shortest path between two given vertices, so I have run
val shortest_path = g.shortestPaths.landmarks(Seq("1","2")).run().
val shortest_path = g.shortestPaths.landmarks(Seq("1","2")).run()
based on the documentation provided here. While this runs and generates the shortest_path dataframe, when I try to .show() that dataframe I get:
shortest_path
.show()
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer.
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
Suggestions?
The text was updated successfully, but these errors were encountered:
It's been a while but I recall some issue with shortestpaths - it looked like scala unbox error like this
java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at scala.runtime.BoxesRunTime.unboxToInt(BoxesRunTime.java:106)
(would be good if anyone would like to help fix)
I was able to workaround with id etc casted to string
v1 = v.select(v.id.cast("string").alias("id")) e1 = e.select(e.src.cast("string").alias("src"), e.dst.cast("string").alias("dst"), e.relationship) g1 = GraphFrame(v1, e1)
Sorry, something went wrong.
This appears to have worked. Thank you! (I leave it up to you whether you want to keep this issue open as a reminder to look into that error or not.)
let's see if we can fix this...
+1
No branches or pull requests
I have a graph, g, which is roughly 4.5M vertices and 43M edges as:
scala> g res10: org.graphframes.GraphFrame = GraphFrame(v:[id: int], e:[src: int, dst: int])
I would like to calculate the shortest path between two given vertices, so I have run
val shortest_path = g.shortestPaths.landmarks(Seq("1","2")).run()
.based on the documentation provided here. While this runs and generates the
shortest_path
dataframe, when I try to.show()
that dataframe I get:java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer
.Suggestions?
The text was updated successfully, but these errors were encountered: