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

    https://github.com/apache/spark/pull/13818#discussion_r69159655
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala ---
    @@ -200,7 +201,6 @@ private[hive] class HiveMetastoreCatalog(sparkSession: 
SparkSession) extends Log
         cachedDataSourceTables.getIfPresent(tableIdentifier) match {
           case null => None // Cache miss
           case logical @ LogicalRelation(relation: HadoopFsRelation, _, _) =>
    -        val pathsInMetastore = 
metastoreRelation.catalogTable.storage.locationUri.toSeq
    --- End diff --
    
    This is where the relation's paths are computed and the logic for empty 
versus non-empty partitioned tables diverges: 
https://github.com/VideoAmp/spark-public/blob/8a058c65c6c20e311bde5c0ade87c14c6b6b5f37/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala#L489-L493.
    
    I believe this is the PR where this behavior was introduced: #13022.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to