Github user ericl commented on a diff in the pull request:
https://github.com/apache/spark/pull/15024#discussion_r84976357
--- Diff:
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala ---
@@ -741,16 +762,20 @@ object HiveExternalCatalog {
val STATISTICS_NUM_ROWS = STATISTICS_PREFIX + "numRows"
val STATISTICS_COL_STATS_PREFIX = STATISTICS_PREFIX + "colStats."
- def removeStatsProperties(metadata: CatalogTable): Map[String, String] =
{
- metadata.properties.filterNot { case (key, _) =>
key.startsWith(STATISTICS_PREFIX) }
+ // Ideally we should use `spark.sql.sources.location` to store the table
location, but as we have
+ // already used `path` to store it, we should keep it for backward
compatibility.
+ val TABLE_LOCATION = "path"
--- End diff --
We still have the "path" literal hard-coded in several places in different
files. Should this be pulled out into a common constant somewhere?
---
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]