Moderately complex `when` expressions produce generated code that busts the 64KB method limit. This causes code generation to fail.
Here's a test case exhibiting the problem: https://github.com/joehalliwell/spark/commit/4dbdf6e15d1116b8e1eb44822fd29ead9b7d817d
I'm interested in working on a fix. I'm thinking it may be possible to split the expressions along the lines of
SPARK-8443, but any pointers would be welcome!