title: Grows beyond 64 KB Error when using "When Otherwise"
body: <p>When I run this Spark code in Scala:</p>
  <pre><code>df.withColumn(x, when(col(x).isin(values:_*),col(x)).otherwise(lit(null).cast(StringType)))
  </code></pre>
  <p>I face this Error:</p>
  <pre><code>     java.lang.RuntimeException: Compiling &quot;GeneratedClass&quot;: Code of method
   &quot;apply(Lorg/apache/spark/sql/catalyst/InternalRow;)Lorg/apache/spark/sql
   /catalyst /expressions/UnsafeRow;&quot; of class
   &quot;org.apache.spark.sql.catalyst.expressions.GeneratedClass$SpecificUnsafeProjection&quot;
   grows beyond 64 KB
          at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java:361)
          at org.codehaus.janino.SimpleCompiler.cook(SimpleCompiler.java:234)
  </code></pre>
  <p>df: Spark Dataset</p>
  <p>x: StringType column, each row something like &quot;US,Washington,Seattle&quot;</p>
  <p>values: Array[String]</p>