Github user jeanlyn commented on the pull request: https://github.com/apache/spark/pull/5079#issuecomment-83372419 @chenghao-intel my full code is ```java import org.apache.hadoop.hive.ql.exec.UDF; public class hello extends UDF { public String evaluate(String str) { try { return "hello " + str; } catch (Exception e) { return null; } } } ``` @adrian-wang ,I also test the `mapjoin_addjar.q` in `spark-sql`. I got the exception when `CREATE TABLE ` ``` 15/03/19 14:41:36 ERROR DDLTask: java.lang.NoSuchFieldError: CHAR at org.apache.spark.sql.hive.HiveContext.runHive(HiveContext.scala:310) at org.apache.spark.sql.hive.HiveContext.runSqlHive(HiveContext.scala:277) at org.apache.spark.sql.hive.execution.NativeCommand.sideEffectResult$lzycompute(NativeCommand.scala:35) at org.apache.spark.sql.hive.execution.NativeCommand.sideEffectResult(NativeCommand.scala:35) ``` But it seems that not the load jar problem.Because when i not run the ``` add jar ${system:maven.local.repository}/org/apache/hive/hcatalog/hive-hcatalog-core/${system:hive.version}/hive-hcatalog-core-${system:hive.version}.jar; ``` I got the follow exception ``` 15/03/19 14:54:51 ERROR DDLTask: org.apache.hadoop.hive.ql.metadata.HiveException: Cannot validate serde: org.apache.hive.hcatalog.data.JsonSerDe at org.apache.hadoop.hive.ql.exec.DDLTask.validateSerDe(DDLTask.java:3423) at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3553) at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:252) ```
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org