bowenliang123 commented on code in PR #4144: URL: https://github.com/apache/kyuubi/pull/4144#discussion_r1082542597
########## kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/KyuubiScalaObjectMapper.scala: ########## @@ -23,7 +23,9 @@ import com.fasterxml.jackson.databind.ObjectMapper import com.fasterxml.jackson.module.scala.DefaultScalaModule class KyuubiScalaObjectMapper extends ContextResolver[ObjectMapper] { - private val mapper = new ObjectMapper().registerModule(DefaultScalaModule) + override def getContext(aClass: Class[_]): ObjectMapper = KyuubiScalaObjectMapper.mapper +} - override def getContext(aClass: Class[_]): ObjectMapper = mapper +object KyuubiScalaObjectMapper { + val mapper: ObjectMapper = new ObjectMapper().registerModule(DefaultScalaModule) Review Comment: OK, good catch, reverted all changes in KyuubiScalaObjectMapper. -- 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: notifications-unsubscr...@kyuubi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@kyuubi.apache.org For additional commands, e-mail: notifications-h...@kyuubi.apache.org