laglangyue commented on code in PR #43526:
URL: https://github.com/apache/spark/pull/43526#discussion_r1389149886
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/HDFSMetadataLog.scala:
##########
@@ -49,10 +49,11 @@ import org.apache.spark.sql.internal.SQLConf
class HDFSMetadataLog[T <: AnyRef : ClassTag](sparkSession: SparkSession,
path: String)
extends MetadataLog[T] with Logging {
- private implicit val formats = Serialization.formats(NoTypeHints)
+ private implicit val formats: Formats = Serialization.formats(NoTypeHints)
/** Needed to serialize type T into JSON when using Jackson */
- private implicit val manifest =
Manifest.classType[T](implicitly[ClassTag[T]].runtimeClass)
+ private implicit val manifest: Manifest[T] =
Review Comment:
log is
```shell
java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to
class [Lorg.apache.spark.sql.execution.streaming.FileStreamSource$FileEntry;
([Ljava.lang.Object; is in module java.base of loader 'bootstrap';
[Lorg.apache.spark.sql.execution.streaming.FileStreamSource$FileEntry; is in
unnamed module of loader 'app')
at
org.apache.spark.sql.execution.streaming.FileStreamSourceLog.restore(FileStreamSourceLog.scala:119)
at
org.apache.spark.sql.execution.streaming.FileStreamSource.<init>(FileStreamSource.scala:117)
at
org.apache.spark.sql.execution.datasources.DataSource.createSource(DataSource.scala:303)
at
org.apache.spark.sql.execution.streaming.MicroBatchExecution$$anonfun$1.$anonfun$applyOrElse$1(MicroBatchExecution.scala:124)
at scala.collection.mutable.HashMap.getOrElseUpdate(HashMap.scala:469)
at
org.apache.spark.sql.execution.streaming.MicroBatchExecution$$anonfun$1.applyOrElse(MicroBatchExecution.scala:121)
at
org.apache.spark.sql.execution.streaming.MicroBatchExecution$$anonfun$1.applyOrElse(MicroBatchExecution.scala:119)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]