{"action":"created","issue":{"url":"https://api.github.com/repos/adelbertc/frameless/issues/71","repository_url":"https://api.github.com/repos/adelbertc/frameless","labels_url":"https://api.github.com/repos/adelbertc/frameless/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/adelbertc/frameless/issues/71/comments","events_url":"https://api.github.com/repos/adelbertc/frameless/issues/71/events","html_url":"https://github.com/adelbertc/frameless/issues/71","id":190316508,"number":71,"title":"java.lang.AbstractMethodError: org.apache.spark.sql.catalyst.expressions.Expression.doGenCode","user":{"login":"dmitrybugakov","id":21037644,"avatar_url":"https://avatars.githubusercontent.com/u/21037644?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrybugakov","html_url":"https://github.com/dmitrybugakov","followers_url":"https://api.github.com/users/dmitrybugakov/followers","following_url":"https://api.github.com/users/dmitrybugakov/following{/other_user}","gists_url":"https://api.github.com/users/dmitrybugakov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrybugakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrybugakov/subscriptions","organizations_url":"https://api.github.com/users/dmitrybugakov/orgs","repos_url":"https://api.github.com/users/dmitrybugakov/repos","events_url":"https://api.github.com/users/dmitrybugakov/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrybugakov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-18T13:14:19Z","updated_at":"2016-11-18T17:59:26Z","closed_at":null,"body":"Hi there. \r\n\r\nIn my project i'm using versions:\r\n\r\nval sparkV = \"2.0.1\"\r\nval scalaV = \"2.11.8\"\r\nval framelessV = \"0.1.0\"\r\n\r\nWhen i tried do this : \r\n\r\nsealed trait Gender\r\ncase object Male extends Gender\r\ncase object Female extends Gender\r\ncase object Other extends Gender\r\n \r\nimplicit val genderToInt:frameless.Injection[Gender,Int] = frameless.Injection[Gender,Int](\r\n  {\r\n    case Male => 1\r\n    case Female => 2\r\n    case Other => 3\r\n  },\r\n  {\r\n    case 1 => Male\r\n    case 2 => Female\r\n    case 3 => Other\r\n  }\r\n)\r\n \r\ncase class Person(age: Int, gender: Gender)\r\nval people = Seq(Person(1,Male))\r\nimplicit val sqlContext = spark.sqlContext\r\nTypedDataset.create(people)\r\n\r\n\r\nthen found this error:\r\n\r\njava.lang.AbstractMethodError: org.apache.spark.sql.catalyst.expressions.Expression.doGenCode(Lorg/apache/spark/sql/catalyst/expressions/codegen/CodegenContext;Lorg/apache/spark/sql/catalyst/expressions/codegen/ExprCode;)Lorg/apache/spark/sql/catalyst/expressions/codegen/ExprCode;\r\n  at org.apache.spark.sql.catalyst.expressions.Expression$$anonfun$genCode$2.apply(Expression.scala:104)\r\n  at org.apache.spark.sql.catalyst.expressions.Expression$$anonfun$genCode$2.apply(Expression.scala:101)\r\n  at scala.Option.getOrElse(Option.scala:121)\r\n  at org.apache.spark.sql.catalyst.expressions.Expression.genCode(Expression.scala:101)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.CodegenContext$$anonfun$generateExpressions$1.apply(CodeGenerator.scala:744)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.CodegenContext$$anonfun$generateExpressions$1.apply(CodeGenerator.scala:744)\r\n  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)\r\n  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)\r\n  at scala.collection.immutable.List.foreach(List.scala:381)\r\n  at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)\r\n  at scala.collection.immutable.List.map(List.scala:285)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.CodegenContext.generateExpressions(CodeGenerator.scala:744)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.GenerateUnsafeProjection$.createCode(GenerateUnsafeProjection.scala:299)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.GenerateUnsafeProjection$.create(GenerateUnsafeProjection.scala:363)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.GenerateUnsafeProjection$.create(GenerateUnsafeProjection.scala:356)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.GenerateUnsafeProjection$.create(GenerateUnsafeProjection.scala:32)\r\n  at org.apache.spark.sql.catalyst.expressions.codegen.CodeGenerator.generate(CodeGenerator.scala:825)\r\n  at org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.extractProjection$lzycompute(ExpressionEncoder.scala:252)\r\n  at org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.extractProjection(ExpressionEncoder.scala:252)\r\n  at org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.toRow(ExpressionEncoder.scala:276)\r\n  at org.apache.spark.sql.SparkSession$$anonfun$3.apply(SparkSession.scala:421)\r\n  at org.apache.spark.sql.SparkSession$$anonfun$3.apply(SparkSession.scala:421)\r\n  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)\r\n  at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)\r\n  at scala.collection.immutable.List.foreach(List.scala:381)\r\n  at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)\r\n  at scala.collection.immutable.List.map(List.scala:285)\r\n  at org.apache.spark.sql.SparkSession.createDataset(SparkSession.scala:421)\r\n  at org.apache.spark.sql.SQLContext.createDataset(SQLContext.scala:380)\r\n  at frameless.TypedDataset$.create(TypedDataset.scala:269)\r\n  ... 52 elided\r\n\r\n\r\nCan you help me? \r\n"},"comment":{"url":"https://api.github.com/repos/adelbertc/frameless/issues/comments/261598103","html_url":"https://github.com/adelbertc/frameless/issues/71#issuecomment-261598103","issue_url":"https://api.github.com/repos/adelbertc/frameless/issues/71","id":261598103,"user":{"login":"dmitrybugakov","id":21037644,"avatar_url":"https://avatars.githubusercontent.com/u/21037644?v=3","gravatar_id":"","url":"https://api.github.com/users/dmitrybugakov","html_url":"https://github.com/dmitrybugakov","followers_url":"https://api.github.com/users/dmitrybugakov/followers","following_url":"https://api.github.com/users/dmitrybugakov/following{/other_user}","gists_url":"https://api.github.com/users/dmitrybugakov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitrybugakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitrybugakov/subscriptions","organizations_url":"https://api.github.com/users/dmitrybugakov/orgs","repos_url":"https://api.github.com/users/dmitrybugakov/repos","events_url":"https://api.github.com/users/dmitrybugakov/events{/privacy}","received_events_url":"https://api.github.com/users/dmitrybugakov/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T17:59:26Z","updated_at":"2016-11-18T17:59:26Z","body":"Well, i will be trying, thank you. "}}
{"actor":{"display_login":"dmitrybugakov"}}