LuciferYang commented on a change in pull request #30924:
URL: https://github.com/apache/spark/pull/30924#discussion_r549228644
##########
File path:
core/src/main/scala/org/apache/spark/rdd/SequenceFileRDDFunctions.scala
##########
@@ -32,16 +32,13 @@ import org.apache.spark.internal.Logging
* @note This can't be part of PairRDDFunctions because we need more implicit
parameters to
* convert our keys and values to Writable.
*/
-class SequenceFileRDDFunctions[K <% Writable: ClassTag, V <% Writable :
ClassTag](
+class SequenceFileRDDFunctions[K: IsWritable: ClassTag, V: IsWritable:
ClassTag](
Review comment:
And I think we could combine the type declaration with the
`SequenceFileRDDFunctions ` definition, but it seems that Spark tells us
`avoid using structural types.`
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]