You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2021/03/01 11:58:00 UTC
[jira] [Updated] (SPARK-34569) Fix wrong test in SQLQuerySuite
[ https://issues.apache.org/jira/browse/SPARK-34569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-34569:
----------------------------------
Description:
Using Apache Spark 3.0 with Scala 2.12, and trying to submit a job, which reads from Azure Event Hub as binary encoded and then deserializes as protobuf generated class, then getting this error. The stack trace is follows:
{code:java}
java.lang.NoSuchMethodError: org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.<init>(Lorg/apache/spark/sql/types/StructType;ZLscala/collection/Seq;Lorg/apache/spark/sql/catalyst/expressions/Expression;Lscala/reflect/ClassTag;)V
at frameless.TypedExpressionEncoder$.apply(TypedExpressionEncoder.scala:45)
at scalapb.spark.Implicits.typedEncoderToEncoder(TypedEncoders.scala:125)
at scalapb.spark.Implicits.typedEncoderToEncoder$(TypedEncoders.scala:122)
at scalapb.spark.Implicits$.typedEncoderToEncoder(TypedEncoders.scala:128)
at Utils.MessagingQueues.EventHubSourceReader$.editorialAdStream(EventHubSourceReader.scala:57)
at Utils.MessagingQueues.SourceReader$.readEditorialAdSource(SourceReader.scala:39)
at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRTHelper$.fetchInputStream(UnifiedNRTHelper.scala:62)
at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRT$.main(UnifiedNRT.scala:50)
at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRT.main(UnifiedNRT.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:775)
{code}
was:Fix wrong test in SQLQuerySuite
> Fix wrong test in SQLQuerySuite
> -------------------------------
>
> Key: SPARK-34569
> URL: https://issues.apache.org/jira/browse/SPARK-34569
> Project: Spark
> Issue Type: Task
> Components: SQL
> Affects Versions: 3.1.1
> Reporter: angerszhu
> Priority: Major
>
> Using Apache Spark 3.0 with Scala 2.12, and trying to submit a job, which reads from Azure Event Hub as binary encoded and then deserializes as protobuf generated class, then getting this error. The stack trace is follows:
> {code:java}
> java.lang.NoSuchMethodError: org.apache.spark.sql.catalyst.encoders.ExpressionEncoder.<init>(Lorg/apache/spark/sql/types/StructType;ZLscala/collection/Seq;Lorg/apache/spark/sql/catalyst/expressions/Expression;Lscala/reflect/ClassTag;)V
> at frameless.TypedExpressionEncoder$.apply(TypedExpressionEncoder.scala:45)
> at scalapb.spark.Implicits.typedEncoderToEncoder(TypedEncoders.scala:125)
> at scalapb.spark.Implicits.typedEncoderToEncoder$(TypedEncoders.scala:122)
> at scalapb.spark.Implicits$.typedEncoderToEncoder(TypedEncoders.scala:128)
> at Utils.MessagingQueues.EventHubSourceReader$.editorialAdStream(EventHubSourceReader.scala:57)
> at Utils.MessagingQueues.SourceReader$.readEditorialAdSource(SourceReader.scala:39)
> at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRTHelper$.fetchInputStream(UnifiedNRTHelper.scala:62)
> at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRT$.main(UnifiedNRT.scala:50)
> at Workflows.Streaming.PROD.UnifiedNRT.UnifiedNRT.main(UnifiedNRT.scala)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:775)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org