-
Notifications
You must be signed in to change notification settings - Fork 35
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
Error: NoSuchMethodError: cats.kernel.Eq$.catsKernelInstancesForString()Lcats/kernel/Order; #341
Comments
I have seen a similar issue before. Previously it was caused by spark depending on cats milestone, which was binary incompatible with other versions of cats. This was causing a similar I made a demo project using scala-uri with spark which would workaround the above issue by shading cats: https://github.com/lemonlabsuk/scala-uri-spark-demo It looks like the spark issue has been resolved. If it has been resolved, the shading workaround wouldn't be needed anymore, but I'm not sure exactly which version of spark has the fix. Which version of spark are you using? I could do some testing to see if that issue still exists. |
Hi thank you for the quick response! I'm currently running on Funny enough , like you mentioned it looks like this was fixed in 3.0.1 and I'm running 3.1.1 so it shouldn't have been an issue I built a fat jar including the 'cats-core_2.12', version: '2.0.0' and in addition just for the heck of it tried cats-core_2.12 too unfortunately that didn't seem to correct the issue either - in the process of attempting to try the shading cats work around Meanwhile even attempting to
Unfortunately neither worked |
Sorry for the delayed reply. I have upgraded https://github.com/lemonlabsuk/scala-uri-spark-demo to spark 3.1.1 and can reproduce the problem by removing the shading.
With the shading in place, the spark job runs correctly and I can see
So it seems to still be the Spark bug described in typelevel/cats#3628 and shading should solve the issue. I'm not sure why the shading isn't working for you gradle build, but happy to help if you can push a self contained project demoing the issue to github |
I stumbled on your excellent library and thank you for writing and maintaining it! Not trying to reopen this issue, but simply adding another observation at this point in time. Using Spark 3.2.1, Scala 2.12 and the additional Maven coordinates:
I am still getting the same error message: Referencing the following pull request:
I am guessing at this point here are the options (non-exhausive, open for ideation):
|
Getting the following error while
To Reproduce
Simply
Was looking at the URL scala class and the reference to implicit val orderUrl: Order[Url] = Order.by(_.toString()) is there as does
val Order = cats.kernel.Order in cats however not understanding why its complaining
the
Full Stack
Any thoughts as to what's going on ? I recall seeing some talk about moving to cats verses fastparse. ( Didnt knowof that was related )
Thanks!
-E
The text was updated successfully, but these errors were encountered: