I'm trying to implement new encoder, which will be able to encode Kotlin
They can be generics, so I'm calculating their types in compiletime.
My trouble is I have following code generated:
/* 197 */ final InternalRow deserializetoobject_value_9 = false ?
/* 198 */ null : new kotlin.Pair(deserializetoobject_argValue_1,
It's obvious that InternalRow can't be assigned with kotlin.Pair
And therefore errors like this:
20/03/19 16:31:18 ERROR CodeGenerator: failed to compile:
org.codehaus.commons.compiler.CompileException: File 'generated.java',
Line 195, Column 74: Assignment conversion not possible from type
"kotlin.Pair" to type "org.apache.spark.sql.catalyst.InternalRow"
Here  I put gist with more code: mine and generated and also stacktace
I'm building my encoder against current spark snapshot