Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/15515#discussion_r85080739
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala
---
@@ -217,8 +218,24 @@ case class CatalogTable(
output.filter(_.nonEmpty).mkString("CatalogTable(\n\t", "\n\t", ")")
}
+ /**
+ * @return whether this table's partition metadata is stored in the Hive
metastore.
+ */
+ def partitionProviderIsHive: Boolean = {
+ import CatalogTable._
+ provider == Some("hive") ||
+ properties.get(PARTITION_PROVIDER_KEY) ==
Some(PARTITION_PROVIDER_HIVE)
+ }
}
+object CatalogTable {
+ val PARTITION_PROVIDER_KEY = "org.apache.spark/partitionProvider"
--- End diff --
add some comments to explain this format?
---
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]