dongjoon-hyun commented on a change in pull request #25787: [SPARK-29081][CORE]
Replace calls to SerializationUtils.clone on properties with a faster
implementation
URL: https://github.com/apache/spark/pull/25787#discussion_r324411907
##########
File path: core/src/main/scala/org/apache/spark/util/Utils.scala
##########
@@ -2950,6 +2950,13 @@ private[spark] object Utils extends Logging {
val codec = codecFactory.getCodec(path)
codec == null || codec.isInstanceOf[SplittableCompressionCodec]
}
+
+ /** Create a new properties object with the same values as `props` */
+ def cloneProperties(props: Properties): Properties = {
+ val resultProps = new Properties()
+ resultProps.putAll(props)
Review comment:
Thank you for preventing JDK11 failure!
----------------------------------------------------------------
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]