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

    https://github.com/apache/spark/pull/10604#discussion_r49402102
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala ---
    @@ -143,19 +143,9 @@ private[hive] class HiveMetastoreCatalog(val client: 
ClientInterface, hive: Hive
               }
             }
     
    -        def partColsFromParts: Option[Seq[String]] = {
    -          table.properties.get("spark.sql.sources.schema.numPartCols").map 
{ numPartCols =>
    -            (0 until numPartCols.toInt).map { index =>
    -              val partCol = 
table.properties.get(s"spark.sql.sources.schema.partCol.$index").orNull
    -              if (partCol == null) {
    -                throw new AnalysisException(
    -                  "Could not read partitioned columns from the metastore 
because it is corrupted " +
    -                    s"(missing part $index of the it, $numPartCols parts 
are expected).")
    -              }
    -
    -              partCol
    -            }
    -          }
    +        def getColumnNames(propertyName: String): Seq[String] = {
    --- End diff --
    
    Is this okay to change? Does this mean change if old metadata can still be 
read?


---
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