kiszk edited a comment on pull request #26319:
URL: https://github.com/apache/spark/pull/26319#issuecomment-723528776


   How did you produce the problem that is reported in the JIRA? I know that 
this code alone does not throw this exception at the codegen.
   ```
   case class Foo(`1_something`: String)
   val test = Seq(Foo("HelloWorld!")).toDS()
   ```
   
   ```
   java.lang.RuntimeException: Error while encoding: 
java.util.concurrent.ExecutionException: 
org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 
316, Column 15: failed to compile: 
org.codehaus.commons.compiler.CompileException: File 'generated.java', Line 
316, Column 15: Expression "funcResult_2 = value_19" is not a type[0m
   [31mstaticinvoke(class org.apache.spark.unsafe.types.UTF8String, StringType, 
fromString, unwrapoption(ObjectType(class java.lang.String), 
assertnotnull(assertnotnull(input[0, Foo, true])).1_something), true, false) AS 
1_something#40[0m
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to