cloud-fan commented on a change in pull request #26127: [SPARK-29348][SQL] Add
observable Metrics for Streaming queries
URL: https://github.com/apache/spark/pull/26127#discussion_r352426526
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/types/DataType.scala
##########
@@ -475,3 +483,30 @@ object DataType {
}
}
}
+
+/**
+ * Jackson serializer for [[DataType]]. Internally this delegates to json4s
based serialization.
+ */
+class DataTypeJsonSerializer extends JsonSerializer[DataType] {
+ private val delegate = new JValueSerializer
+ override def serialize(
+ value: DataType,
Review comment:
nit: 4 space indentation
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]