Re: Error in custom encoder

2020-03-21 Thread asm0dey
Nevermind, solved it. It was incorrect Literal creation with StructType instead of ObjectType -- Sent from: http://apache-spark-developers-list.1001551.n3.nabble.com/ - To unsubscribe e-mail: dev-unsubscr...@spark.apache.org

Error in custom encoder

2020-03-20 Thread Pasha Finkelshteyn
Hello everyone, I'm trying to implement new encoder, which will be able to encode Kotlin data classes. 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 ? /* 1