Github user dongjoon-hyun commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21122#discussion_r183268517
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/ExternalCatalog.scala
 ---
    @@ -31,10 +30,16 @@ import org.apache.spark.util.ListenerBus
      *
      * Implementations should throw [[NoSuchDatabaseException]] when databases 
don't exist.
      */
    -abstract class ExternalCatalog
    -  extends ListenerBus[ExternalCatalogEventListener, ExternalCatalogEvent] {
    +trait ExternalCatalog {
       import CatalogTypes.TablePartitionSpec
     
    +  // Returns the underlying catalog class (e.g., HiveExternalCatalog).
    +  def unwrapped: ExternalCatalog = this
    --- End diff --
    
    @gatorsmile . We had better skip the default implementation here. How do 
you think about that?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to