Github user massie commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7403#discussion_r35392582
  
    --- Diff: core/src/main/scala/org/apache/spark/Dependency.scala ---
    @@ -76,6 +78,18 @@ class ShuffleDependency[K, V, C](
     
       override def rdd: RDD[Product2[K, V]] = 
_rdd.asInstanceOf[RDD[Product2[K, V]]]
     
    +  /**
    +   * The key, value and combiner classes are serialized so that shuffle 
manager
    +   * implementation can use the information to build
    +   */
    +  val keyClassName: String = reflect.classTag[K].runtimeClass.getName
    --- End diff --
    
    Here's [an example of how I use this in the Parquet shuffle manager] 
(https://github.com/apache/spark/pull/7265/files#diff-2bbcf6433bd1ea2072d02cfb4a376985R53)
 to create a schema for the (key, value) or (key, combiner) pairs for the 
shuffle files.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to