boneanxs commented on a change in pull request #4586:
URL: https://github.com/apache/hudi/pull/4586#discussion_r785449636
##########
File path:
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/streaming/HoodieSourceOffset.scala
##########
@@ -45,17 +45,21 @@ case class HoodieSourceOffset(commitTime: String) extends
Offset {
object HoodieSourceOffset {
- val mapper = new ObjectMapper with ScalaObjectMapper
- mapper.setSerializationInclusion(Include.NON_ABSENT)
- mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false)
- mapper.registerModule(DefaultScalaModule)
+
+ lazy val mapper: ObjectMapper = {
Review comment:
Yes, as `scalaObjectMapper` we can replaced with `ClassTag`, we can
safely and simply solve the conflict issue with different scala version(or
Jackson-scala version to be more accurate)
--
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]