[ https://issues.apache.org/jira/browse/SPARK-18835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15744600#comment-15744600 ]
Sean Owen commented on SPARK-18835: ----------------------------------- (Ideally we should fix this for 2.1.0 because it causes the tests to consistently fail in at least a couple envs) > Do not expose shaded types in JavaTypeInference API > --------------------------------------------------- > > Key: SPARK-18835 > URL: https://issues.apache.org/jira/browse/SPARK-18835 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.1.0 > Reporter: Marcelo Vanzin > Priority: Minor > > Currently, {{inferDataType(TypeToken)}} is called from a different maven > module, and because we shade Guava, that sometimes leads to errors (e.g. when > running tests using maven): > {noformat} > udf3Test(test.org.apache.spark.sql.JavaUDFSuite) Time elapsed: 0.084 sec > <<< ERROR! > java.lang.NoSuchMethodError: > org.apache.spark.sql.catalyst.JavaTypeInference$.inferDataType(Lcom/google/common/reflect/TypeToken;)Lscala/Tuple2; > at > test.org.apache.spark.sql.JavaUDFSuite.udf3Test(JavaUDFSuite.java:107) > Results : > Tests in error: > JavaUDFSuite.udf3Test:107 ยป NoSuchMethod > org.apache.spark.sql.catalyst.JavaTyp... > {noformat} > Instead, we shouldn't expose Guava types in these APIs. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org